diff options
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", |