about summary refs log tree commit diff stats
path: root/ranger/core/actions.py
diff options
context:
space:
mode:
Diffstat (limited to 'ranger/core/actions.py')
-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"""