summary refs log tree commit diff stats
path: root/ranger
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 /ranger
parentab8c48472e99b8d0330f9d6084f192564b110afb (diff)
downloadranger-6d7432caa7b4d383176eb5dc8a4528601c1bcfb3.tar.gz
api.commands: Fixed Commands.rest()
Diffstat (limited to 'ranger')
-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] == " ":
u?h=main&id=20d6be52405130930fde9ca5bb5e95131ba4e659'>^
bb0e67a3 ^



1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28