diff options
author | hut <hut@lavabit.com> | 2012-12-17 15:17:58 +0100 |
---|---|---|
committer | hut <hut@lavabit.com> | 2012-12-17 15:17:58 +0100 |
commit | b434ff26739aec5ec7520cad7a552fadb1ddf0d3 (patch) | |
tree | 61c3ad573643ed5fdbd262d7f6315fc422df372f | |
parent | 2bc1a5b85de58be319db69273e055423d2f44d9b (diff) | |
download | ranger-b434ff26739aec5ec7520cad7a552fadb1ddf0d3.tar.gz |
core.actions: fix incorrect tab creation in tab_open
-rw-r--r-- | ranger/core/actions.py | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/ranger/core/actions.py b/ranger/core/actions.py index 4b1b9f29..8d966a50 100644 --- a/ranger/core/actions.py +++ b/ranger/core/actions.py @@ -876,13 +876,12 @@ class Actions(FileManagerAware, EnvironmentAware, SettingsAware): tab = self.tabs[name] except KeyError: # create a new tab - if path: - tab = Tab(path) - else: - tab = Tab(self.thistab.path) + tab = Tab(self.thistab.path) self.tabs[name] = tab self.thistab = tab - tab.enter_dir(tab.path, history=True) + tab.enter_dir(tab.path, history=False) + if path: + tab.enter_dir(path, history=True) if previous_tab: tab.inherit_history(previous_tab.history) else: |