From 6d7432caa7b4d383176eb5dc8a4528601c1bcfb3 Mon Sep 17 00:00:00 2001 From: hut Date: Wed, 19 Oct 2011 21:02:46 +0200 Subject: api.commands: Fixed Commands.rest() --- ranger/api/commands.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ranger/api/commands.py b/ranger/api/commands.py index 1479e1ce..ae3bdc94 100644 --- a/ranger/api/commands.py +++ b/ranger/api/commands.py @@ -21,7 +21,7 @@ from ranger.api import * from ranger.core.shared import FileManagerAware from ranger.ext.lazy_property import lazy_property -SETTINGS_RE = re.compile(r'^([^\s]+?)=(.*)$') +SETTINGS_RE = re.compile(r'^\s*([^\s]+?)=(.*)$') DELETE_WARNING = 'delete seriously? ' def alias(*_): pass # COMPAT @@ -131,7 +131,7 @@ class Command(FileManagerAware): def rest(self, n): """Returns everything from and after arg(n)""" - got_space = False + got_space = True word_count = 0 for i in range(len(self.line)): if self.line[i] == " ": -- cgit 1.4.1-2-gfad0