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] == " ":
07bb12f ^
4c13e1f2 ^
f07bb12f ^
ef0157ff ^
f07bb12f ^


c9383c72 ^

a614f048 ^

f07bb12f ^

c9383c72 ^

f07bb12f ^

c9383c72 ^

f07bb12f ^







c9383c72 ^

f07bb12f ^



62cd83ba ^

f07bb12f ^
4c13e1f2 ^
f07bb12f ^
f07bb12f ^

4c13e1f2 ^

4c13e1f2 ^

f07bb12f ^
4c13e1f2 ^
f07bb12f ^












f07bb12f ^















4c13e1f2 ^
edf3d9f8 ^

4c13e1f2 ^



34a60763 ^
4c13e1f2 ^
34a60763 ^
4c13e1f2 ^



f07bb12f ^
62cd83ba ^
f07bb12f ^
c9383c72 ^
f07bb12f ^
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136