about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-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: