From 7ee308bf055069ba73eb40db1927dc8b0dad22c2 Mon Sep 17 00:00:00 2001 From: Daniel Carl Date: Tue, 2 Dec 2014 21:32:52 +0100 Subject: [PATCH] Allow whitespace around '=' in :set command. --- src/ex.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/ex.c b/src/ex.c index 0731ccb..fb5f136 100644 --- 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); -- 2.20.1