From 0119184fa1f83e5279e3a7cd51728f18b79875c9 Mon Sep 17 00:00:00 2001 From: hut Date: Tue, 15 Jun 2010 11:37:51 +0200 Subject: core.actions: fixed move_parent() --- ranger/core/actions.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'ranger/core/actions.py') diff --git a/ranger/core/actions.py b/ranger/core/actions.py index 14f862c7..c85b7313 100644 --- a/ranger/core/actions.py +++ b/ranger/core/actions.py @@ -139,9 +139,8 @@ class Actions(FileManagerAware, EnvironmentAware, SettingsAware): cwd.move(to=newpos) def move_parent(self, n): - self.enter_dir('..') - self.move(down=n) - self.move(right=0) + parent = self.env.at_level(-1) + self.env.enter_dir(parent.files[parent.pointer+n]) def history_go(self, relative): """Move back and forth in the history""" -- cgit 1.4.1-2-gfad0