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

Display buffer name in hotlist if buffers are merged with same number

This commit is contained in:
Sebastien Helleu
2009-06-13 20:03:00 +02:00
parent d686dc547c
commit 1f8532e668
2 changed files with 5 additions and 3 deletions
+4 -3
View File
@@ -997,9 +997,10 @@ gui_bar_item_default_hotlist (void *data, struct t_gui_bar_item *item,
sprintf (buf + strlen (buf), "%d", ptr_hotlist->buffer->number);
if (display_name
&& (CONFIG_INTEGER(config_look_hotlist_names_count) != 0)
&& (names_count < CONFIG_INTEGER(config_look_hotlist_names_count)))
if ((gui_buffer_count_merged_buffers (ptr_hotlist->buffer->number) > 1)
|| (display_name
&& (CONFIG_INTEGER(config_look_hotlist_names_count) != 0)
&& (names_count < CONFIG_INTEGER(config_look_hotlist_names_count))))
{
names_count++;
+1
View File
@@ -224,6 +224,7 @@ extern struct t_gui_buffer *gui_buffer_search_by_name (const char *plugin,
extern struct t_gui_buffer *gui_buffer_search_by_partial_name (const char *plugin,
const char *name);
extern struct t_gui_buffer *gui_buffer_search_by_number (int number);
extern int gui_buffer_count_merged_buffers (int number);
extern int gui_buffer_is_scrolled (struct t_gui_buffer *buffer);
extern void gui_buffer_clear (struct t_gui_buffer *buffer);
extern void gui_buffer_clear_all ();