be editor neutral

This commit is contained in:
Kovid Goyal 2024-04-06 11:59:44 +05:30
parent 788e21fd03
commit b5c688c94d
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -737,7 +737,7 @@ class GetTranslations(Translations): # {{{
subprocess.check_call(pofilter)
errfiles = glob.glob(errors+os.sep+'*.po')
if errfiles:
subprocess.check_call(['vim', '-f', '-p', '--']+errfiles)
subprocess.check_call([os.environ.get('EDITOR', 'vim'), '-f', '-p', '--']+errfiles)
for f in errfiles:
with open(f, 'r+b') as f:
raw = f.read()