summaryrefslogtreecommitdiff
path: root/src/plugins/buflist/buflist-bar-item.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/buflist/buflist-bar-item.c')
-rw-r--r--src/plugins/buflist/buflist-bar-item.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/plugins/buflist/buflist-bar-item.c b/src/plugins/buflist/buflist-bar-item.c
index d60ecfb45..cf1d22d2a 100644
--- a/src/plugins/buflist/buflist-bar-item.c
+++ b/src/plugins/buflist/buflist-bar-item.c
@@ -324,7 +324,8 @@ buflist_bar_item_buflist_cb (const void *pointer, void *data,
ptr_buffer, "name");
}
- if (*buflist[0])
+ if (weechat_config_boolean (buflist_config_look_add_newline)
+ && *buflist[0])
{
if (!weechat_string_dyn_concat (buflist, "\n"))
goto error;