diff options
author | Klinke600 <steffen.fuerst@gmx.de> | 2014-10-01 00:04:36 +0200 |
---|---|---|
committer | Klinke600 <steffen.fuerst@gmx.de> | 2014-10-01 00:04:36 +0200 |
commit | 6bccc8c34bba2525b5a93537c142ca38dec0bb46 (patch) | |
tree | edd21bbba52af7520511c8e8c8c48528df39e672 /ranger | |
parent | 93654aa049863d2ef5534dbde09bd17cafd55584 (diff) | |
download | ranger-6bccc8c34bba2525b5a93537c142ca38dec0bb46.tar.gz |
pressing <CR> directly after scout -ek doesn't delete the complete
console line anymore
Diffstat (limited to 'ranger')
-rw-r--r-- | ranger/config/commands.py | 7 |
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) |