From: Daniel Carl Date: Tue, 2 Dec 2014 20:32:52 +0000 (+0100) Subject: Allow whitespace around '=' in :set command. X-Git-Url: https://git.owens.tech/assets/static/git.owens.tech/assets/static/git.owens.tech/git?a=commitdiff_plain;h=7ee308bf055069ba73eb40db1927dc8b0dad22c2;p=vimb.git Allow whitespace around '=' in :set command. --- 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);