summaryrefslogtreecommitdiff
path: root/src/core/wee-command.c
diff options
context:
space:
mode:
authorSimmo Saan <simmo.saan@gmail.com>2019-02-21 14:10:09 +0200
committerSimmo Saan <simmo.saan@gmail.com>2019-02-21 16:03:15 +0200
commit91936ff5831e05d316f8abb5dcb5cd830c46addb (patch)
tree65f3638e123163c971b2ab24e394981fc3a36930 /src/core/wee-command.c
parent0a6172c12875545295f992cf70e2e80e32af1e3f (diff)
downloadweechat-91936ff5831e05d316f8abb5dcb5cd830c46addb.zip
gui: only refilter affected buffers on filter change (closes #1309)
Diffstat (limited to 'src/core/wee-command.c')
-rw-r--r--src/core/wee-command.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/core/wee-command.c b/src/core/wee-command.c
index 9f4408308..ccbee03d2 100644
--- a/src/core/wee-command.c
+++ b/src/core/wee-command.c
@@ -2177,7 +2177,7 @@ COMMAND_CALLBACK(filter)
if (!ptr_filter->enabled)
{
ptr_filter->enabled = 1;
- gui_filter_all_buffers ();
+ gui_filter_all_buffers (ptr_filter);
gui_chat_printf_date_tags (NULL, 0,
GUI_FILTER_TAG_NO_FILTER,
_("Filter \"%s\" enabled"),
@@ -2235,7 +2235,7 @@ COMMAND_CALLBACK(filter)
if (ptr_filter->enabled)
{
ptr_filter->enabled = 0;
- gui_filter_all_buffers ();
+ gui_filter_all_buffers (ptr_filter);
gui_chat_printf_date_tags (NULL, 0,
GUI_FILTER_TAG_NO_FILTER,
_("Filter \"%s\" disabled"),
@@ -2289,7 +2289,7 @@ COMMAND_CALLBACK(filter)
if (ptr_filter)
{
ptr_filter->enabled ^= 1;
- gui_filter_all_buffers ();
+ gui_filter_all_buffers (ptr_filter);
}
else
{
@@ -2330,7 +2330,7 @@ COMMAND_CALLBACK(filter)
argv_eol[5]);
if (ptr_filter)
{
- gui_filter_all_buffers ();
+ gui_filter_all_buffers (ptr_filter);
gui_chat_printf (NULL, "");
gui_chat_printf_date_tags (NULL, 0, GUI_FILTER_TAG_NO_FILTER,
_("Filter \"%s\" added:"),
@@ -2384,7 +2384,7 @@ COMMAND_CALLBACK(filter)
if (gui_filters)
{
gui_filter_free_all ();
- gui_filter_all_buffers ();
+ gui_filter_all_buffers (NULL);
gui_chat_printf_date_tags (NULL, 0, GUI_FILTER_TAG_NO_FILTER,
_("All filters have been deleted"));
}
@@ -2400,7 +2400,7 @@ COMMAND_CALLBACK(filter)
if (ptr_filter)
{
gui_filter_free (ptr_filter);
- gui_filter_all_buffers ();
+ gui_filter_all_buffers (ptr_filter);
gui_chat_printf_date_tags (NULL, 0, GUI_FILTER_TAG_NO_FILTER,
_("Filter \"%s\" deleted"),
argv[2]);