diff options
author | hut <hut@lavabit.com> | 2010-06-15 11:37:51 +0200 |
---|---|---|
committer | hut <hut@lavabit.com> | 2010-06-18 11:47:08 +0200 |
commit | 0119184fa1f83e5279e3a7cd51728f18b79875c9 (patch) | |
tree | f48bcd366286d2b9baad0a9cfaecdc65a843409a | |
parent | e278a0035654437cfd28d9c139ba0a08cb01294a (diff) | |
download | ranger-0119184fa1f83e5279e3a7cd51728f18b79875c9.tar.gz |
core.actions: fixed move_parent()
-rw-r--r-- | ranger/core/actions.py | 5 |
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""" |