summary refs log tree commit diff stats
path: root/ranger
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2010-04-08 19:02:40 +0200
committerhut <hut@lavabit.com>2010-04-08 19:02:40 +0200
commitf677745aaaafd4784526d0969183a4a683148a72 (patch)
tree81ce6e0e488cc6f9135ab79bc6ef6c97a26360bb /ranger
parentb8b7363781ff8c92ff2a0aa813cdee0b1c5ac034 (diff)
downloadranger-f677745aaaafd4784526d0969183a4a683148a72.tar.gz
Fixed "=" seperator in set command
Diffstat (limited to 'ranger')
-rw-r--r--ranger/defaults/commands.py14
1 files changed, 9 insertions, 5 deletions
diff --git a/ranger/defaults/commands.py b/ranger/defaults/commands.py
index c364fda0..f894f23d 100644
--- a/ranger/defaults/commands.py
+++ b/ranger/defaults/commands.py
@@ -245,14 +245,18 @@ class set(Command):
 	def execute(self):
 		line = parse(self.line)
 		name = line.chunk(1)
-		try:
-			value = eval(line.rest(2))
-		except:
-			return
-		self.fm.settings[name] = value
+		name, value, _ = line.parse_setting_line()
+		if name and value:
+			try:
+				value = eval(value)
+			except:
+				pass
+			self.fm.settings[name] = value
 
 	def tab(self):
 		line = parse(self.line)
+		from ranger import log
+		log(line.parse_setting_line())
 		name, value, name_done = line.parse_setting_line()
 		settings = self.fm.settings
 		if not name: