about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorhut <hut@lepus.uberspace.de>2016-06-06 15:25:29 +0200
committerhut <hut@lepus.uberspace.de>2016-06-06 15:25:44 +0200
commit3d909b205950310f36fae6073a9890e5c2c4a25a (patch)
treede0e83febf9bd03fc0f128d16927e64ee257ac50
parent24712b901b6f5a02038e5c8b892c1ec63085cca9 (diff)
downloadranger-3d909b205950310f36fae6073a9890e5c2c4a25a.tar.gz
core.actions: fix wrong check for return value of tab.enter_dir
-rw-r--r--ranger/core/actions.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ranger/core/actions.py b/ranger/core/actions.py
index 0224db6d..34e91256 100644
--- a/ranger/core/actions.py
+++ b/ranger/core/actions.py
@@ -515,7 +515,7 @@ class Actions(FileManagerAware, SettingsAware):
         # csh variable is lowercase
         cdpath = os.environ.get('CDPATH', None) or os.environ.get('cdpath', None)
         result = self.thistab.enter_dir(path, history=history)
-        if result == 0 and cdpath:
+        if result == False and cdpath:
             for p in cdpath.split(':'):
                 curpath = os.path.join(p, path)
                 if os.path.isdir(curpath):