diff options
author | hut <hut@lepus.uberspace.de> | 2016-06-06 15:25:29 +0200 |
---|---|---|
committer | hut <hut@lepus.uberspace.de> | 2016-06-06 15:25:44 +0200 |
commit | 3d909b205950310f36fae6073a9890e5c2c4a25a (patch) | |
tree | de0e83febf9bd03fc0f128d16927e64ee257ac50 /ranger | |
parent | 24712b901b6f5a02038e5c8b892c1ec63085cca9 (diff) | |
download | ranger-3d909b205950310f36fae6073a9890e5c2c4a25a.tar.gz |
core.actions: fix wrong check for return value of tab.enter_dir
Diffstat (limited to 'ranger')
-rw-r--r-- | ranger/core/actions.py | 2 |
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): |