Add helix to the list of editors to search for

This commit is contained in:
Kovid Goyal
2023-07-02 07:49:21 +05:30
parent 0bc4f8076e
commit bc72c3eadc

View File

@@ -667,7 +667,7 @@ def get_editor_from_env_vars(opts: Optional[Options] = None) -> List[str]:
shell_env = read_shell_environment(opts)
editor = get_editor_from_env(shell_env)
for ans in (editor, 'vim', 'nvim', 'vi', 'emacs', 'kak', 'micro', 'nano', 'vis'):
for ans in (editor, 'vim', 'nvim', 'vi', 'emacs', 'hx', 'kak', 'micro', 'nano', 'vis'):
if ans and which(shlex.split(ans)[0], only_system=True):
break
else: