summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2011-10-19 21:02:46 +0200
committerhut <hut@lavabit.com>2011-10-19 21:02:46 +0200
commit6d7432caa7b4d383176eb5dc8a4528601c1bcfb3 (patch)
tree699bf5ba0db899fdeeb0d9d75cfeae7988f7dee1
parentab8c48472e99b8d0330f9d6084f192564b110afb (diff)
downloadranger-6d7432caa7b4d383176eb5dc8a4528601c1bcfb3.tar.gz
api.commands: Fixed Commands.rest()
-rw-r--r--ranger/api/commands.py4
1 files 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] == " ":