projects
/
vimb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fb3f21a
)
Don't clear inputbox after toggle settings.
author
Daniel Carl
<danielcarl@gmx.de>
Sun, 23 Nov 2014 22:18:02 +0000
(23:18 +0100)
committer
Daniel Carl
<danielcarl@gmx.de>
Sun, 23 Nov 2014 22:18:02 +0000
(23:18 +0100)
src/setting.c
patch
|
blob
|
history
diff --git
a/src/setting.c
b/src/setting.c
index
2c4464b
..
2b6108c
100644
(file)
--- a/
src/setting.c
+++ b/
src/setting.c
@@
-284,6
+284,9
@@
VbCmdResult setting_run(char *name, const char *param)
gboolean value = !s->value.b;
res = setting_set_value(s, &value, SETTING_SET);
setting_print(s);
+
+ /* make sure the new value set by the toggle keep visible */
+ res |= VB_CMD_KEEPINPUT;
} else {
if (!param) {
vb_echo(VB_MSG_ERROR, true, "No valid value");