summaryrefslogtreecommitdiff
path: root/src/gui/gui-buffer.c
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2013-04-18 20:24:35 +0200
committerSebastien Helleu <flashcode@flashtux.org>2013-04-18 20:24:35 +0200
commitc95f3d84d08b96999d34419816490a5584e425ec (patch)
tree4154aae57d5c98a58bdf63b87935443341b5d5dc /src/gui/gui-buffer.c
parent00c1c81c0b276e21d45fb504e8cde8dac05aa1af (diff)
downloadweechat-c95f3d84d08b96999d34419816490a5584e425ec.zip
api: add property "completion_freeze" for function buffer_set: do not stop completion when command line is updated
Diffstat (limited to 'src/gui/gui-buffer.c')
-rw-r--r--src/gui/gui-buffer.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gui/gui-buffer.c b/src/gui/gui-buffer.c
index bb62d3d01..2f8352eb4 100644
--- a/src/gui/gui-buffer.c
+++ b/src/gui/gui-buffer.c
@@ -1501,6 +1501,10 @@ gui_buffer_set (struct t_gui_buffer *buffer, const char *property,
(void) gui_hotlist_add (buffer, number, NULL);
}
}
+ else if (string_strcasecmp (property, "completion_freeze") == 0)
+ {
+ gui_completion_freeze = (strcmp (value, "1") == 0) ? 1 : 0;
+ }
if (!buffer)
return;