about summary refs log tree commit diff stats
path: root/ranger
diff options
context:
space:
mode:
authortoonn <toonn@toonn.io>2021-01-23 17:09:37 +0100
committertoonn <toonn@toonn.io>2021-01-23 17:09:37 +0100
commitd4d11706e3e2cd7b72ee4147efa05f28c7f639be (patch)
tree6e2a86ed164e214c9f6be8a86ce4133cfc3ce9e0 /ranger
parent11b80d757ff8aa624b2390cfb3df8f12851ffc7e (diff)
downloadranger-d4d11706e3e2cd7b72ee4147efa05f28c7f639be.tar.gz
console: Never set command empty in the first place
Diffstat (limited to 'ranger')
-rwxr-xr-xranger/config/commands.py4
1 files changed, 1 insertions, 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)