commit 71b053d762a332359dbb083df3438ff4c7b943dc
parent 7a9c626399ca52d4bc2ca1646a6b4c9a2d386ae4
Author: Eric Davis <edavis@insanum.com>
Date: Thu, 2 Apr 2015 16:24:36 -0700
EDITOR and PAGER environment variables override .snclirc config
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/simplenote_cli/sncli.py b/simplenote_cli/sncli.py
@@ -60,7 +60,7 @@ def sync_notes(self):
def get_editor(self):
editor = self.config.get_config('editor')
- if not editor and os.environ['EDITOR']:
+ if os.environ['EDITOR']:
editor = os.environ['EDITOR']
if not editor:
self.log(u'No editor configured!')
@@ -69,7 +69,7 @@ def get_editor(self):
def get_pager(self):
pager = self.config.get_config('pager')
- if not pager and os.environ['PAGER']:
+ if os.environ['PAGER']:
pager = os.environ['PAGER']
if not pager:
self.log(u'No pager configured!')