From 07b79215a381757cd1fe93ff365add8db696b65e Mon Sep 17 00:00:00 2001 From: hut Date: Mon, 17 Dec 2012 15:23:16 +0100 Subject: 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. --- ranger/core/actions.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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') -- cgit 1.4.1-2-gfad0