summary refs log tree commit diff stats
diff options
context:
space:
mode:
-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:
='n102' href='#n102'>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