From a65efba9c1db5cda2284e95d364e47bf652bf160 Mon Sep 17 00:00:00 2001 From: hut Date: Mon, 11 May 2015 18:42:06 +0200 Subject: core.actions: strip leading whitespace off commands --- ranger/core/actions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- cgit 1.4.1-2-gfad0