summary refs log tree commit diff stats
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
parente278a0035654437cfd28d9c139ba0a08cb01294a (diff)
downloadranger-0119184fa1f83e5279e3a7cd51728f18b79875c9.tar.gz
core.actions: fixed move_parent()
-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"""
d='n134' href='#n134'>134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168