From 15173364c053ed6871fdfca8408a73684bb91336 Mon Sep 17 00:00:00 2001 From: Sebastien Helleu Date: Mon, 30 Sep 2013 16:02:02 +0200 Subject: core: fix display of read marker (as horizontal line) or day change message after last buffer line when scrolling (bug #40126) --- src/gui/curses/gui-curses-chat.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/gui/curses/gui-curses-chat.c') diff --git a/src/gui/curses/gui-curses-chat.c b/src/gui/curses/gui-curses-chat.c index 0a20b1fb5..cfa7d5cd4 100644 --- a/src/gui/curses/gui-curses-chat.c +++ b/src/gui/curses/gui-curses-chat.c @@ -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 */ -- cgit v1.2.3