summary refs log tree commit diff stats
diff options
context:
space:
mode:
-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"""
'author Kartik K. Agaram <vc@akkartik.com> 2017-11-03 00:40:05 -0700 committer Kartik K. Agaram <vc@akkartik.com> 2017-11-03 01:49:36 -0700 4103 - continuations no longer cause memory corruption' href='/akkartik/mu/commit/continuation1.mu?h=hlt&id=a3195d440d2f0e99400db78e5a4386691c94a9a0'>a3195d44 ^
5059f32d ^
6e455985 ^

a3195d44 ^

6e455985 ^
a3195d44 ^
4a48bedc ^
5059f32d ^
6e455985 ^
a3195d44 ^
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25