diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2014-11-16 08:52:33 +0100 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2014-11-16 08:52:33 +0100 |
commit | 12c997573b75ad02d31adc20bb72730a108c7d17 (patch) | |
tree | a61f95fc481fa2a137a5e6ecaca95a295747c6cf /src/gui/curses/gui-curses-chat.c | |
parent | 0f8520456b042558388877e498510acb60e51982 (diff) | |
download | weechat-12c997573b75ad02d31adc20bb72730a108c7d17.zip |
core: fix display bug when scrolling in buffer on a filtered line (closes #240)
Diffstat (limited to 'src/gui/curses/gui-curses-chat.c')
-rw-r--r-- | src/gui/curses/gui-curses-chat.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/gui/curses/gui-curses-chat.c b/src/gui/curses/gui-curses-chat.c index bdc14f25a..c50047f0b 100644 --- a/src/gui/curses/gui-curses-chat.c +++ b/src/gui/curses/gui-curses-chat.c @@ -1739,6 +1739,12 @@ gui_chat_draw_formatted_buffer (struct t_gui_window *window) } } } + else if (!ptr_line->data->displayed) + { + /* skip filtered lines on top when scrolling */ + ptr_line = gui_line_get_next_displayed (ptr_line); + line_pos = 0; + } } if (auto_search_first_line) @@ -1748,6 +1754,9 @@ gui_chat_draw_formatted_buffer (struct t_gui_window *window) (-1) * (window->win_chat_height - 1)); } + if (!ptr_line) + return; + count = 0; if (line_pos > 0) |