Fix a regression that broke the edit action in the remote file kitten
This commit is contained in:
parent
b173dd1c39
commit
5a92d3f312
1 changed files with 6 additions and 1 deletions
|
|
@ -528,7 +528,12 @@ def get_editor_from_env_vars(opts: Optional[Options] = None) -> List[str]:
|
|||
def get_editor(opts: Optional[Options] = None) -> List[str]:
|
||||
if opts is None:
|
||||
from .fast_data_types import get_options
|
||||
opts = get_options()
|
||||
try:
|
||||
opts = get_options()
|
||||
except RuntimeError:
|
||||
# we are in a kitten
|
||||
from .cli import create_default_opts
|
||||
opts = create_default_opts()
|
||||
if opts.editor == '.':
|
||||
return get_editor_from_env_vars()
|
||||
import shlex
|
||||
|
|
|
|||
Loading…
Reference in a new issue