From d4d11706e3e2cd7b72ee4147efa05f28c7f639be Mon Sep 17 00:00:00 2001 From: toonn Date: Sat, 23 Jan 2021 17:09:37 +0100 Subject: console: Never set command empty in the first place --- ranger/config/commands.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/ranger/config/commands.py b/ranger/config/commands.py index ee149532..32429f24 100755 --- a/ranger/config/commands.py +++ b/ranger/config/commands.py @@ -838,7 +838,7 @@ class console(Command): def execute(self): position = None - command = "" + command = self.rest(1) if self.arg(1)[0:2] == '-p': command = self.rest(2) try: @@ -853,8 +853,6 @@ class console(Command): command = command.replace(separate, '', 1) else: position = None - else: - command = self.rest(1) self.fm.open_console(command, position=position) -- cgit 1.4.1-2-gfad0