projects
/
vimb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1efe51a
)
Allow whitespace around '=' in :set command.
author
Daniel Carl
<danielcarl@gmx.de>
Tue, 2 Dec 2014 20:32:52 +0000
(21:32 +0100)
committer
Daniel Carl
<danielcarl@gmx.de>
Tue, 2 Dec 2014 20:32:52 +0000
(21:32 +0100)
src/ex.c
patch
|
blob
|
history
diff --git
a/src/ex.c
b/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);