about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorhut <hut@lepus.uberspace.de>2015-05-11 18:42:06 +0200
committerhut <hut@lepus.uberspace.de>2015-05-11 18:42:23 +0200
commita65efba9c1db5cda2284e95d364e47bf652bf160 (patch)
treee9e12cd68d45647d3f0c12c9c118a99bb7dc93c4
parent52febab20bf28dd95c6fdde370958ae32495d80b (diff)
downloadranger-a65efba9c1db5cda2284e95d364e47bf652bf160.tar.gz
core.actions: strip leading whitespace off commands
-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)