aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorDaniel Moch2019-09-23 19:37:37 -0400
committerDaniel Moch2019-09-23 19:37:37 -0400
commit072acbf2c4c71b09dbf3def86626f7f46e832e01 (patch)
tree5492b0100beb16d854d2f7a048a84844fcc08a69
parenta4f2cac8d3d414b14938fd8ad11712fb613552b7 (diff)
downloadnncli-master.tar.gz
Use $VISUAL instead of $EDITORHEADmaster
-rw-r--r--nncli/config.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/nncli/config.py b/nncli/config.py
index 0e97faf..67abd50 100644
--- a/nncli/config.py
+++ b/nncli/config.py
@@ -37,8 +37,8 @@ class Config:
'cfg_format_strftime' : '%Y/%m/%d',
'cfg_format_note_title' : '[%D] %F %-N %T',
'cfg_status_bar' : 'yes',
- 'cfg_editor' : os.environ['EDITOR'] \
- if 'EDITOR' in os.environ else 'vim {fname} +{line}',
+ 'cfg_editor' : os.environ['VISUAL'] \
+ if 'VISUAL' in os.environ else 'vim {fname} +{line}',
'cfg_pager' : os.environ['PAGER'] \
if 'PAGER' in os.environ else 'less -c',
'cfg_max_logs' : '5',