From 6969b9b2b81b9d57f05790af75a12912d9895b67 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Helleu?= Date: Sun, 20 Aug 2023 20:54:24 +0200 Subject: buflist: indent the /list buffer --- src/plugins/buflist/buflist-bar-item.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/plugins/buflist/buflist-bar-item.c') 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 */ -- cgit v1.2.3