1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-28 05:46:38 +02:00

buflist: increase max number of buflist items from 3 to 5 (closes #1703)

This commit is contained in:
Sébastien Helleu
2023-06-20 19:16:17 +02:00
parent f811621611
commit d7a6fcba5f
18 changed files with 79 additions and 54 deletions
+4 -3
View File
@@ -30,14 +30,15 @@
struct t_gui_bar_item *buflist_bar_item_buflist[BUFLIST_BAR_NUM_ITEMS] =
{ NULL, NULL, NULL };
{ NULL, NULL, NULL, NULL, NULL };
struct t_hashtable *buflist_hashtable_pointers = NULL;
struct t_hashtable *buflist_hashtable_extra_vars = NULL;
struct t_hashtable *buflist_hashtable_options_conditions = NULL;
struct t_arraylist *buflist_list_buffers[BUFLIST_BAR_NUM_ITEMS] =
{ NULL, NULL, NULL };
{ NULL, NULL, NULL, NULL, NULL };
int old_line_number_current_buffer[BUFLIST_BAR_NUM_ITEMS] = { -1, -1, -1 };
int old_line_number_current_buffer[BUFLIST_BAR_NUM_ITEMS] =
{ -1, -1, -1, -1, -1 };
/*
+1 -1
View File
@@ -22,7 +22,7 @@
#define BUFLIST_BAR_ITEM_NAME "buflist"
#define BUFLIST_BAR_NUM_ITEMS 3
#define BUFLIST_BAR_NUM_ITEMS 5
struct t_gui_bar_item;
+7 -5
View File
@@ -70,8 +70,10 @@ struct t_config_option *buflist_config_format_tls_version = NULL;
struct t_hook **buflist_config_signals_refresh = NULL;
int buflist_config_num_signals_refresh = 0;
char **buflist_config_sort_fields[BUFLIST_BAR_NUM_ITEMS] = { NULL, NULL, NULL };
int buflist_config_sort_fields_count[BUFLIST_BAR_NUM_ITEMS] = { 0, 0, 0 };
char **buflist_config_sort_fields[BUFLIST_BAR_NUM_ITEMS] =
{ NULL, NULL, NULL, NULL, NULL };
int buflist_config_sort_fields_count[BUFLIST_BAR_NUM_ITEMS] =
{ 0, 0, 0, 0, 0 };
char *buflist_config_format_buffer_eval = NULL;
char *buflist_config_format_buffer_current_eval = NULL;
char *buflist_config_format_hotlist_eval = NULL;
@@ -622,9 +624,9 @@ buflist_config_init ()
buflist_config_file, buflist_config_section_look,
"use_items", "integer",
N_("number of buflist bar items that can be used; the item names "
"are: \"buflist\", \"buflist2\", \"buflist3\"; be careful, "
"using more than one bar item slows down the display of "
"buffers list"),
"are: \"buflist\", \"buflist2\", \"buflist3\", \"buflist4\" and "
"\"buflist5\"; be careful, using more than one bar item slows "
"down the display of buffers list"),
NULL, 1, BUFLIST_BAR_NUM_ITEMS, "1", NULL, 0,
NULL, NULL, NULL,
&buflist_config_change_use_items, NULL, NULL,