summary refs log tree commit diff stats
path: root/ranger
diff options
context:
space:
mode:
authornfnty <git@nfnty.se>2017-01-28 23:17:55 +0100
committernfnty <git@nfnty.se>2017-01-28 23:20:49 +0100
commite9d8f70031690cf34a4fddb51e9c422260b553a8 (patch)
tree7d4f3128a77dc9a1c34d8d091f0c34538f336044 /ranger
parent9220c310ddfec4cfadb237a1b31c274a7c8ff244 (diff)
downloadranger-e9d8f70031690cf34a4fddb51e9c422260b553a8.tar.gz
config.commands: scout: Open highlighted entry on enter
Fixes #281
Diffstat (limited to 'ranger')
-rwxr-xr-xranger/config/commands.py7
1 files changed, 2 insertions, 5 deletions
diff --git a/ranger/config/commands.py b/ranger/config/commands.py
index b88d1e24..f86dad2b 100755
--- a/ranger/config/commands.py
+++ b/ranger/config/commands.py
@@ -1198,11 +1198,8 @@ class scout(Command):
         self.cancel()
 
         if self.OPEN_ON_ENTER in flags or \
-                self.AUTO_OPEN in flags and count == 1:
-            if os.path.exists(pattern):
-                self.fm.cd(pattern)
-            else:
-                self.fm.move(right=1)
+                (self.AUTO_OPEN in flags and count == 1):
+            self.fm.move(right=1)
 
         if self.KEEP_OPEN in flags and thisdir != self.fm.thisdir:
             # reopen the console: