From 6bccc8c34bba2525b5a93537c142ca38dec0bb46 Mon Sep 17 00:00:00 2001 From: Klinke600 Date: Wed, 1 Oct 2014 00:04:36 +0200 Subject: pressing directly after scout -ek doesn't delete the complete console line anymore --- ranger/config/commands.py | 7 +++++-- 1 file 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) -- cgit 1.4.1-2-gfad0 From b16f1156e98f4dd870b3779911fa9568c4f8272a Mon Sep 17 00:00:00 2001 From: Klinkenstecker Date: Wed, 22 Oct 2014 23:26:25 +0200 Subject: fixed indentation width --- ranger/config/commands.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/ranger/config/commands.py b/ranger/config/commands.py index c467fb7c..380d4eef 100644 --- a/ranger/config/commands.py +++ b/ranger/config/commands.py @@ -1044,11 +1044,11 @@ class scout(Command): self.fm.move(right=1) if self.KEEP_OPEN in flags and thisdir != self.fm.thisdir: - # reopen the console: - if not pattern: - self.fm.open_console(self.line) - else: - 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) -- cgit 1.4.1-2-gfad0