diff options
-rw-r--r-- | ChangeLog | 2 | ||||
-rw-r--r-- | src/gui/gui-input.c | 5 |
2 files changed, 7 insertions, 0 deletions
@@ -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 diff --git a/src/gui/gui-input.c b/src/gui/gui-input.c index 2977bbef6..bbe2b3dda 100644 --- a/src/gui/gui-input.c +++ b/src/gui/gui-input.c @@ -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)); |