diff options
Diffstat (limited to 'ranger/core/actions.py')
-rw-r--r-- | ranger/core/actions.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/ranger/core/actions.py b/ranger/core/actions.py index 2db749cd..743d82c5 100644 --- a/ranger/core/actions.py +++ b/ranger/core/actions.py @@ -139,9 +139,11 @@ 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) + try: + self.env.enter_dir(parent.files[parent.pointer+n]) + except IndexError: + pass def history_go(self, relative): """Move back and forth in the history""" |