1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-01 15:26:37 +02:00

buflist: add option buflist.look.add_newline (closes #1027)

This commit is contained in:
Sébastien Helleu
2017-07-01 16:07:43 +02:00
parent d30e2e473b
commit b67c7a4b29
23 changed files with 148 additions and 15 deletions
+2 -1
View File
@@ -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;
+12
View File
@@ -32,6 +32,7 @@ struct t_config_file *buflist_config_file = NULL;
/* buflist config, look section */
struct t_config_option *buflist_config_look_add_newline;
struct t_config_option *buflist_config_look_auto_scroll;
struct t_config_option *buflist_config_look_display_conditions;
struct t_config_option *buflist_config_look_enabled;
@@ -338,6 +339,17 @@ buflist_config_init ()
return 0;
}
buflist_config_look_add_newline = weechat_config_new_option (
buflist_config_file, ptr_section,
"add_newline", "boolean",
N_("add newline between the buffers displayed, so each buffer is "
"displayed on a separate line (recommended); if disabled, newlines "
"must be manually added in the formats with \"${\\n}\", "
"and the mouse actions are not possible any more"),
NULL, 0, 0, "on", NULL, 0,
NULL, NULL, NULL,
&buflist_config_change_buflist, NULL, NULL,
NULL, NULL, NULL);
buflist_config_look_auto_scroll = weechat_config_new_option (
buflist_config_file, ptr_section,
"auto_scroll", "integer",
+1
View File
@@ -32,6 +32,7 @@
extern struct t_config_file *buflist_config_file;
extern struct t_config_option *buflist_config_look_add_newline;
extern struct t_config_option *buflist_config_look_auto_scroll;
extern struct t_config_option *buflist_config_look_display_conditions;
extern struct t_config_option *buflist_config_look_enabled;