summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2014-11-16 08:52:33 +0100
committerSébastien Helleu <flashcode@flashtux.org>2014-11-16 08:52:33 +0100
commit12c997573b75ad02d31adc20bb72730a108c7d17 (patch)
treea61f95fc481fa2a137a5e6ecaca95a295747c6cf /src/gui
parent0f8520456b042558388877e498510acb60e51982 (diff)
downloadweechat-12c997573b75ad02d31adc20bb72730a108c7d17.zip
core: fix display bug when scrolling in buffer on a filtered line (closes #240)
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/curses/gui-curses-chat.c9
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)