mirror of
https://github.com/weechat/weechat.git
synced 2026-07-01 07:16:37 +02:00
core: fix hotlist problems after apply of a layout (bug #41481)
This commit fixes a problem when computing the value of "num_displayed" in all buffers. For merged buffers (with same number), the num_displayed of each merged buffer must be incremented (and not only the current active buffer).
This commit is contained in:
@@ -1958,7 +1958,14 @@ gui_buffer_compute_num_displayed ()
|
||||
ptr_window = ptr_window->next_window)
|
||||
{
|
||||
if (ptr_window->buffer)
|
||||
ptr_window->buffer->num_displayed++;
|
||||
{
|
||||
for (ptr_buffer = gui_buffers; ptr_buffer;
|
||||
ptr_buffer = ptr_buffer->next_buffer)
|
||||
{
|
||||
if (ptr_buffer->number == ptr_window->buffer->number)
|
||||
ptr_buffer->num_displayed++;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user