summary refs log tree commit diff stats
path: root/ranger
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2012-12-17 15:23:16 +0100
committerhut <hut@lavabit.com>2012-12-17 15:23:16 +0100
commit07b79215a381757cd1fe93ff365add8db696b65e (patch)
treefe6aa1122ea614bcb216139f6a88d402f61e5208 /ranger
parent697082ecf15f2ce8e380e9aca054449a8cf23b0a (diff)
downloadranger-07b79215a381757cd1fe93ff365add8db696b65e.tar.gz
core.actions: fix another case in tab_open
if you use ":tab_open 1 /path" while being in tab 1, the path should
change to /path, but it doesn't.
Diffstat (limited to 'ranger')
-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')