1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-12 14:14:48 +02:00

Fix bug with scroll_unread: do not scroll to a filtered line (bug #29991)

This commit is contained in:
Sebastien Helleu
2010-06-04 13:46:33 +02:00
parent ff0a798634
commit 6c17328bdf
2 changed files with 7 additions and 0 deletions
+2
View File
@@ -10,6 +10,8 @@ Version 0.3.3 (under dev!)
* core: add keys for undo/redo changes on command line
(default: ctrl/alt + underscore) (task #9483)
* core: add new option weechat.look.confirm_quit
* core: fix bug with scroll_unread: do not scroll to a filtered line
(bug #29991)
* core: fix crash with hook_process (when timer is called on a deleted hook
process)
* api: add function "string_expand_home", fix bug with replacement of home in
+5
View File
@@ -1260,6 +1260,11 @@ gui_input_scroll_unread (struct t_gui_window *window)
window->start_line = window->buffer->lines->first_line;
else
window->start_line = window->buffer->lines->last_read_line->next_line;
if (window->start_line)
{
if (!gui_line_is_displayed (window->start_line))
window->start_line = gui_line_get_next_displayed (window->start_line);
}
window->start_line_pos = 0;
window->first_line_displayed =
(window->start_line == gui_line_get_first_displayed (window->buffer));