summaryrefslogtreecommitdiff
path: root/src/plugins/buflist/buflist-bar-item.c
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2017-07-01 16:07:43 +0200
committerSébastien Helleu <flashcode@flashtux.org>2017-07-01 16:07:43 +0200
commitb67c7a4b29f9dac613f9dc938bc84c413f3a6f38 (patch)
tree2c175c7beb3f1fd65ba55fd5e627bdd04983e3e4 /src/plugins/buflist/buflist-bar-item.c
parentd30e2e473b729fd3c13a7421c53e6e18c05097d6 (diff)
downloadweechat-b67c7a4b29f9dac613f9dc938bc84c413f3a6f38.zip
buflist: add option buflist.look.add_newline (closes #1027)
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;