mirror of
https://github.com/weechat/weechat.git
synced 2026-07-01 07:16:37 +02:00
core: fix truncated prefix when filters are toggled (bug #40204)
This commit is contained in:
@@ -149,9 +149,6 @@ gui_filter_buffer (struct t_gui_buffer *buffer,
|
||||
lines_changed = 0;
|
||||
lines_hidden = buffer->lines->lines_hidden;
|
||||
|
||||
if (!line_data)
|
||||
buffer->lines->prefix_max_length = CONFIG_INTEGER(config_look_prefix_align_min);
|
||||
|
||||
ptr_line = buffer->lines->first_line;
|
||||
while (ptr_line || line_data)
|
||||
{
|
||||
@@ -159,12 +156,6 @@ gui_filter_buffer (struct t_gui_buffer *buffer,
|
||||
|
||||
line_displayed = gui_filter_check_line (ptr_line_data);
|
||||
|
||||
if (line_displayed
|
||||
&& (ptr_line_data->prefix_length > buffer->lines->prefix_max_length))
|
||||
{
|
||||
buffer->lines->prefix_max_length = ptr_line_data->prefix_length;
|
||||
}
|
||||
|
||||
if (ptr_line_data->displayed != line_displayed)
|
||||
{
|
||||
lines_changed = 1;
|
||||
@@ -181,6 +172,8 @@ gui_filter_buffer (struct t_gui_buffer *buffer,
|
||||
|
||||
if (line_data)
|
||||
line_data->buffer->lines->prefix_max_length_refresh = 1;
|
||||
else
|
||||
buffer->lines->prefix_max_length_refresh = 1;
|
||||
|
||||
if (buffer->lines->lines_hidden != lines_hidden)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user