diff options
-rw-r--r-- | ranger/config/commands.py | 5 |
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) |