about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2013-02-21 23:56:56 +0100
committerhut <hut@lavabit.com>2013-02-21 23:56:56 +0100
commit527bba304722a90f3bf4de81a15b6680ce3ea68c (patch)
tree447d8ab6f5294a06d31583680572f261b5d8f66f
parentcb5c9a51c28a77f981a109e109bbf14874f62009 (diff)
downloadranger-527bba304722a90f3bf4de81a15b6680ce3ea68c.tar.gz
config/commands: fix ":find .."
-rw-r--r--ranger/config/commands.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/ranger/config/commands.py b/ranger/config/commands.py
index 7c6a7680..dca6cbb9 100644
--- a/ranger/config/commands.py
+++ b/ranger/config/commands.py
@@ -344,7 +344,10 @@ class find(Command):
 
     def execute(self):
         if self.quick():
-            self.fm.move(right=1)
+            if self.rest(1) == '..':
+                self.fm.move(left=1)
+            else:
+                self.fm.move(right=1)
             self.fm.block_input(0.5)
         else:
             self.fm.cd(self.rest(1))