mirror of
https://github.com/weechat/weechat.git
synced 2026-07-03 08:13:14 +02:00
core: fix display of read marker (as horizontal line) or day change message after last buffer line when scrolling (bug #40126)
This commit is contained in:
@@ -180,7 +180,8 @@ gui_chat_display_horizontal_line (struct t_gui_window *window, int simulate)
|
||||
int x, size_on_screen;
|
||||
char *read_marker_string, *default_string = "- ";
|
||||
|
||||
if (simulate)
|
||||
if (simulate
|
||||
|| (!simulate && (window->win_chat_cursor_y >= window->win_chat_height)))
|
||||
return;
|
||||
|
||||
gui_window_coords_init_line (window, window->win_chat_cursor_y);
|
||||
@@ -599,7 +600,8 @@ gui_chat_display_day_changed (struct t_gui_window *window,
|
||||
{
|
||||
char temp_message[1024], message[1024], *message_with_color;
|
||||
|
||||
if (simulate)
|
||||
if (simulate
|
||||
|| (!simulate && (window->win_chat_cursor_y >= window->win_chat_height)))
|
||||
return;
|
||||
|
||||
/* build the message to display */
|
||||
|
||||
Reference in New Issue
Block a user