diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2014-08-03 10:33:45 +0200 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2014-08-03 10:33:45 +0200 |
commit | 6a09cf0ed3a7f7d97ef20e5f17a030fee435ce47 (patch) | |
tree | f9db766db4f64e176cc0a4fb50cf142759732185 /src/gui | |
parent | 895a46c55f57681f04369ee4ec3adf9799a37ae2 (diff) | |
download | weechat-6a09cf0ed3a7f7d97ef20e5f17a030fee435ce47.zip |
core: fix display of bar item "buffer_filter" when toggling filters in current buffer (closes #150)
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/gui-bar-item.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/gui/gui-bar-item.c b/src/gui/gui-bar-item.c index 2badd3c8d..1fbeeaee2 100644 --- a/src/gui/gui-bar-item.c +++ b/src/gui/gui-bar-item.c @@ -1137,8 +1137,11 @@ gui_bar_item_default_buffer_filter (void *data, struct t_gui_bar_item *item, if (!buffer) return NULL; - if (!gui_filters_enabled || !gui_filters || !buffer->lines->lines_hidden) + if (!gui_filters_enabled || !gui_filters + || !buffer->filter || !buffer->lines->lines_hidden) + { return NULL; + } snprintf (str_filter, sizeof (str_filter), "%s%s", |