diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2023-08-20 20:54:24 +0200 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2023-08-20 20:54:24 +0200 |
commit | 6969b9b2b81b9d57f05790af75a12912d9895b67 (patch) | |
tree | 8e8ae4260ccd768fbaed6c3e39063adfeccf916c /src/plugins/buflist/buflist-bar-item.c | |
parent | 5ffce90f23c043ac16b7703b0413f6610e4bc26b (diff) | |
download | weechat-6969b9b2b81b9d57f05790af75a12912d9895b67.zip |
buflist: indent the /list buffer
Diffstat (limited to 'src/plugins/buflist/buflist-bar-item.c')
-rw-r--r-- | src/plugins/buflist/buflist-bar-item.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/plugins/buflist/buflist-bar-item.c b/src/plugins/buflist/buflist-bar-item.c index f7cd9bbc7..7585bf3c6 100644 --- a/src/plugins/buflist/buflist-bar-item.c +++ b/src/plugins/buflist/buflist-bar-item.c @@ -314,7 +314,7 @@ buflist_bar_item_buflist_cb (const void *pointer, void *data, "highlight" }; const char indent_empty[1] = { '\0' }; const char *ptr_lag, *ptr_item_name, *ptr_tls_version; - int item_index, num_buffers, is_channel, is_private; + int item_index, num_buffers, is_channel, is_private, is_list; int i, j, length_max_number, current_buffer, number, prev_number, priority; int rc, count, line_number, line_number_current_buffer; int hotlist_priority_number; @@ -445,7 +445,8 @@ buflist_bar_item_buflist_cb (const void *pointer, void *data, ptr_type = weechat_buffer_get_string (ptr_buffer, "localvar_type"); is_channel = (ptr_type && (strcmp (ptr_type, "channel") == 0)); is_private = (ptr_type && (strcmp (ptr_type, "private") == 0)); - ptr_format_indent = (is_channel || is_private) ? + is_list = (ptr_type && (strcmp (ptr_type, "list") == 0)); + ptr_format_indent = (is_channel || is_private || is_list) ? weechat_config_string (buflist_config_format_indent) : indent_empty; /* nick prefix */ |