summary refs log tree commit diff stats
path: root/ranger
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2012-12-17 15:17:58 +0100
committerhut <hut@lavabit.com>2012-12-17 15:17:58 +0100
commitb434ff26739aec5ec7520cad7a552fadb1ddf0d3 (patch)
tree61c3ad573643ed5fdbd262d7f6315fc422df372f /ranger
parent2bc1a5b85de58be319db69273e055423d2f44d9b (diff)
downloadranger-b434ff26739aec5ec7520cad7a552fadb1ddf0d3.tar.gz
core.actions: fix incorrect tab creation in tab_open
Diffstat (limited to 'ranger')
-rw-r--r--ranger/core/actions.py9
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: