summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorKlinke600 <steffen.fuerst@gmx.de>2014-10-01 00:04:36 +0200
committerKlinke600 <steffen.fuerst@gmx.de>2014-10-01 00:04:36 +0200
commit6bccc8c34bba2525b5a93537c142ca38dec0bb46 (patch)
treeedd21bbba52af7520511c8e8c8c48528df39e672
parent93654aa049863d2ef5534dbde09bd17cafd55584 (diff)
downloadranger-6bccc8c34bba2525b5a93537c142ca38dec0bb46.tar.gz
pressing <CR> directly after scout -ek doesn't delete the complete
console line anymore
-rw-r--r--ranger/config/commands.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/ranger/config/commands.py b/ranger/config/commands.py
index abc616ee..c467fb7c 100644
--- a/ranger/config/commands.py
+++ b/ranger/config/commands.py
@@ -1044,8 +1044,11 @@ class scout(Command):
                 self.fm.move(right=1)
 
         if self.KEEP_OPEN in flags and thisdir != self.fm.thisdir:
-            # reopen the console:
-            self.fm.open_console(self.line[0:-len(pattern)])
+             # reopen the console:
+             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)