summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorhut <hut@hut.pm>2017-10-01 17:25:14 +0200
committerhut <hut@hut.pm>2017-10-01 17:25:14 +0200
commitc06b62b3cb340bdd47ada19b238108cb1f3fd80c (patch)
treea69bc43b0006d7b569bc6b4ade6457bd3273cd1e
parent0ea94c81a2dff42c28e2655e5ba7987dc78f55be (diff)
downloadranger-c06b62b3cb340bdd47ada19b238108cb1f3fd80c.tar.gz
config.commands: make ":find .." move to parent dir
fixes #949
-rwxr-xr-xranger/config/commands.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/ranger/config/commands.py b/ranger/config/commands.py
index 77d73bb8..de3170bb 100755
--- a/ranger/config/commands.py
+++ b/ranger/config/commands.py
@@ -1361,7 +1361,10 @@ class scout(Command):
 
         if self.OPEN_ON_ENTER in flags or \
                 (self.AUTO_OPEN in flags and count == 1):
-            self.fm.move(right=1)
+            if pattern == '..':
+                self.fm.cd(pattern)
+            else:
+                self.fm.move(right=1)
 
         if self.KEEP_OPEN in flags and thisdir != self.fm.thisdir:
             # reopen the console:
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 169 170 171 172 173 174