summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--ranger/core/actions.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ranger/core/actions.py b/ranger/core/actions.py
index bf865d20..442182ff 100644
--- a/ranger/core/actions.py
+++ b/ranger/core/actions.py
@@ -160,7 +160,7 @@ class Actions(FileManagerAware, SettingsAware):
 
     def execute_console(self, string='', wildcards=[], quantifier=None):
         """Execute a command for the console"""
-        command_name = string.split()[0]
+        command_name = string.lstrip().split()[0]
         cmd_class = self.commands.get_command(command_name, abbrev=False)
         if cmd_class is None:
             self.notify("Command not found: `%s'" % command_name, bad=True)