about summary refs log tree commit diff stats
path: root/ranger
diff options
context:
space:
mode:
authorhut <hut@lepus.uberspace.de>2014-10-23 01:24:15 +0200
committerhut <hut@lepus.uberspace.de>2014-10-23 01:24:15 +0200
commitfc138baee9118076e8181096246a484f3611456c (patch)
tree9fdb80ccc3965cbf7f7af4b1cb36245b9b9d2fa6 /ranger
parent1538e8078b0431466ad60f967764dd3543d2ca5b (diff)
parentb16f1156e98f4dd870b3779911fa9568c4f8272a (diff)
downloadranger-fc138baee9118076e8181096246a484f3611456c.tar.gz
Merge remote-tracking branch 'klinke/CR_scout_fix'
Diffstat (limited to 'ranger')
-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 abc616ee..380d4eef 100644
--- a/ranger/config/commands.py
+++ b/ranger/config/commands.py
@@ -1045,7 +1045,10 @@ class scout(Command):
 
         if self.KEEP_OPEN in flags and thisdir != self.fm.thisdir:
             # reopen the console:
-            self.fm.open_console(self.line[0:-len(pattern)])
+            if not pattern:
+                self.fm.open_console(self.line)
+            else:
+                self.fm.open_console(self.line[0:-len(pattern)])
 
         if thisdir != self.fm.thisdir and pattern != "..":
             self.fm.block_input(0.5)