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

core: fix filtered line displayed after /window scroll_beyond_end

This commit is contained in:
Sebastien Helleu
2013-07-18 20:07:47 +02:00
parent 913e036fa3
commit 354d96ea36
+2 -2
View File
@@ -1501,7 +1501,7 @@ gui_chat_draw_formatted_buffer (struct t_gui_window *window)
line_pos = window->scroll->start_line_pos;
if (line_pos < 0)
{
ptr_line = ptr_line->next_line;
ptr_line = gui_line_get_next_displayed (ptr_line);
line_pos = 0;
if (ptr_line)
{
@@ -1616,7 +1616,7 @@ gui_chat_draw_free_buffer (struct t_gui_window *window, int clear_chat)
{
ptr_line = window->scroll->start_line;
if (window->scroll->start_line_pos < 0)
ptr_line = ptr_line->next_line;
ptr_line = gui_line_get_next_displayed (ptr_line);
}
else
ptr_line = window->buffer->lines->first_line;