1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-06 09:43:13 +02:00

core: fix display of read marker after buffer switch when there is no line displayed after (only filtered lines)

This commit is contained in:
Sebastien Helleu
2013-10-05 10:19:48 +02:00
parent 1583ca88e5
commit 7bf712d4c9
+6 -1
View File
@@ -1194,7 +1194,12 @@ gui_window_switch_to_buffer (struct t_gui_window *window,
window->buffer->lines->last_read_line = window->buffer->lines->last_line;
window->buffer->lines->first_line_not_read = 0;
}
if (buffer->lines->last_read_line == buffer->lines->last_line)
/*
* if there is no line displayed after last read line,
* then remove the read marker
*/
if (buffer->lines->last_read_line
&& !gui_line_get_next_displayed (buffer->lines->last_read_line))
{
buffer->lines->last_read_line = NULL;
buffer->lines->first_line_not_read = 0;