Adding $VISUAL check

This commit is contained in:
Michael Lazar
2017-08-03 00:28:59 -04:00
parent 558672f4d9
commit 32c33bc80d
2 changed files with 10 additions and 4 deletions

View File

@@ -569,7 +569,10 @@ class Terminal(object):
fp.write(data)
_logger.info('File created: %s', filepath)
editor = os.getenv('RTV_EDITOR') or os.getenv('EDITOR') or 'nano'
editor = (os.getenv('RTV_EDITOR') or
os.getenv('VISUAL') or
os.getenv('EDITOR') or
'nano')
command = shlex.split(editor) + [filepath]
try:
with self.suspend():