Allow whitespace around '=' in :set command.
authorDaniel Carl <danielcarl@gmx.de>
Tue, 2 Dec 2014 20:32:52 +0000 (21:32 +0100)
committerDaniel Carl <danielcarl@gmx.de>
Tue, 2 Dec 2014 20:32:52 +0000 (21:32 +0100)
src/ex.c

index 0731ccb..fb5f136 100644 (file)
--- a/src/ex.c
+++ b/src/ex.c
@@ -926,7 +926,10 @@ static VbCmdResult ex_set(const ExArg *arg)
     /* split the input string into parameter and value part */
     if ((param = strchr(arg->rhs->str, '='))) {
         *param++ = '\0';
-        return setting_run(arg->rhs->str, param ? param : NULL);
+        g_strstrip(arg->rhs->str);
+        g_strstrip(param);
+
+        return setting_run(arg->rhs->str, param);
     }
 
     return setting_run(arg->rhs->str, NULL);