Merge branch 'add_kakoune_editor' of https://github.com/Luflosi/kitty

This commit is contained in:
Kovid Goyal 2019-07-20 08:53:35 +05:30
commit 46d483e8b2
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -415,7 +415,7 @@ def get_editor():
import shlex
ans = os.environ.get('EDITOR')
if not ans or not exe_exists(shlex.split(ans)[0]):
for q in ('vim', 'nvim', 'vi', 'emacs', 'micro', 'nano', 'vis'):
for q in ('vim', 'nvim', 'vi', 'emacs', 'kak', 'micro', 'nano', 'vis'):
r = exe_exists(q)
if r:
ans = r