about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--ranger/core/actions.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/ranger/core/actions.py b/ranger/core/actions.py
index 8d966a50..fba254c7 100644
--- a/ranger/core/actions.py
+++ b/ranger/core/actions.py
@@ -886,7 +886,10 @@ class Actions(FileManagerAware, EnvironmentAware, SettingsAware):
 				tab.inherit_history(previous_tab.history)
 		else:
 			self.thistab = tab
-			tab.enter_dir(tab.path, history=False)
+			if path:
+				tab.enter_dir(path, history=True)
+			else:
+				tab.enter_dir(tab.path, history=False)
 
 		if tab_has_changed:
 			self.change_mode('normal')