diff options
Diffstat (limited to 'ranger/core/environment.py')
-rw-r--r-- | ranger/core/environment.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ranger/core/environment.py b/ranger/core/environment.py index 1d1464d2..00b152d3 100644 --- a/ranger/core/environment.py +++ b/ranger/core/environment.py @@ -172,6 +172,8 @@ class Environment(SettingsAware, SignalDispatcher): if path is None: return path = str(path) + previous = self.cwd + # get the absolute path path = normpath(join(self.path, expanduser(path))) @@ -215,4 +217,6 @@ class Environment(SettingsAware, SignalDispatcher): if history: self.history.add(new_cwd) + self.signal_emit('cd', previous=previous, new=self.cwd) + return True |