core: fix display bug when scrolling in buffer on a filtered line (closes #240)

This commit is contained in:
Sébastien Helleu 2014-11-16 08:52:33 +01:00
parent 0f8520456b
commit 12c997573b
2 changed files with 11 additions and 0 deletions

View File

@ -49,6 +49,8 @@ http://weechat.org/files/releasenotes/ReleaseNotes-devel.html[release notes]
=== Bugs fixed
* core: fix display bug when scrolling in buffer on a filtered line
(closes #240)
* core: send mouse code only one time to terminal with command
/mouse enable|disable|toggle
* core: fix buffer property "lines_hidden" when merging buffers or when a line

View File

@ -1739,6 +1739,12 @@ gui_chat_draw_formatted_buffer (struct t_gui_window *window)
}
}
}
else if (!ptr_line->data->displayed)
{
/* skip filtered lines on top when scrolling */
ptr_line = gui_line_get_next_displayed (ptr_line);
line_pos = 0;
}
}
if (auto_search_first_line)
@ -1748,6 +1754,9 @@ gui_chat_draw_formatted_buffer (struct t_gui_window *window)
(-1) * (window->win_chat_height - 1));
}
if (!ptr_line)
return;
count = 0;
if (line_pos > 0)