summary refs log tree commit diff stats
path: root/ranger
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2010-06-15 11:37:51 +0200
committerhut <hut@lavabit.com>2010-06-18 11:47:08 +0200
commit0119184fa1f83e5279e3a7cd51728f18b79875c9 (patch)
treef48bcd366286d2b9baad0a9cfaecdc65a843409a /ranger
parente278a0035654437cfd28d9c139ba0a08cb01294a (diff)
downloadranger-0119184fa1f83e5279e3a7cd51728f18b79875c9.tar.gz
core.actions: fixed move_parent()
Diffstat (limited to 'ranger')
-rw-r--r--ranger/core/actions.py5
1 files changed, 2 insertions, 3 deletions
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"""