From b434ff26739aec5ec7520cad7a552fadb1ddf0d3 Mon Sep 17 00:00:00 2001 From: hut Date: Mon, 17 Dec 2012 15:17:58 +0100 Subject: core.actions: fix incorrect tab creation in tab_open --- ranger/core/actions.py | 9 ++++----- 1 file 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: -- cgit 1.4.1-2-gfad0