diff options
author | hut <hut@lepus.uberspace.de> | 2014-10-23 01:24:15 +0200 |
---|---|---|
committer | hut <hut@lepus.uberspace.de> | 2014-10-23 01:24:15 +0200 |
commit | fc138baee9118076e8181096246a484f3611456c (patch) | |
tree | 9fdb80ccc3965cbf7f7af4b1cb36245b9b9d2fa6 | |
parent | 1538e8078b0431466ad60f967764dd3543d2ca5b (diff) | |
parent | b16f1156e98f4dd870b3779911fa9568c4f8272a (diff) | |
download | ranger-fc138baee9118076e8181096246a484f3611456c.tar.gz |
Merge remote-tracking branch 'klinke/CR_scout_fix'
-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) |