summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2010-06-04 13:46:33 +0200
committerSebastien Helleu <flashcode@flashtux.org>2010-06-04 13:46:33 +0200
commit6c17328bdf07a31f53f0cd3df84e0dba6ec7983d (patch)
treeeee4965b5d7a92b5e8ce3fb443f2c319cd9c5eba /src
parentff0a798634e2b27f6db2faea370cd6faba36d335 (diff)
downloadweechat-6c17328bdf07a31f53f0cd3df84e0dba6ec7983d.zip
Fix bug with scroll_unread: do not scroll to a filtered line (bug #29991)
Diffstat (limited to 'src')
-rw-r--r--src/gui/gui-input.c5
1 files changed, 5 insertions, 0 deletions
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));