mirror of
https://github.com/weechat/weechat.git
synced 2026-06-29 22:36:38 +02:00
Fix "more" indicator when filters are enabled with some lines hidden (bug #23752)
This commit is contained in:
@@ -752,7 +752,7 @@ gui_chat_display_time_and_prefix (struct t_gui_window *window,
|
||||
* if simulate == 1, nothing is displayed
|
||||
* (for counting how many lines would have been
|
||||
* displayed)
|
||||
* returns: number of lines displayed (or simulated)
|
||||
* return number of lines displayed (or simulated)
|
||||
*/
|
||||
|
||||
int
|
||||
@@ -766,6 +766,9 @@ gui_chat_display_line (struct t_gui_window *window, struct t_gui_line *line,
|
||||
char *ptr_data, *ptr_end_offset, *next_char;
|
||||
char *ptr_style;
|
||||
|
||||
if (!line)
|
||||
return 0;
|
||||
|
||||
if (simulate)
|
||||
{
|
||||
x = window->win_chat_cursor_x;
|
||||
@@ -1151,7 +1154,7 @@ gui_chat_draw (struct t_gui_buffer *buffer, int erase)
|
||||
/* if so, disable scroll indicator */
|
||||
if (!ptr_line && ptr_win->scroll)
|
||||
{
|
||||
if (count == gui_chat_display_line (ptr_win, ptr_win->buffer->last_line, 0, 1))
|
||||
if (count == gui_chat_display_line (ptr_win, gui_chat_get_last_line_displayed (ptr_win->buffer), 0, 1))
|
||||
ptr_win->scroll = 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user