diff options
author | Sebastien Helleu <flashcode@flashtux.org> | 2013-09-30 16:02:02 +0200 |
---|---|---|
committer | Sebastien Helleu <flashcode@flashtux.org> | 2013-09-30 16:02:02 +0200 |
commit | 15173364c053ed6871fdfca8408a73684bb91336 (patch) | |
tree | 8f3f3c4054d185a9b0e0e115c3838befd111039d /src/gui | |
parent | 8b966d1c7ea7b57cd7c2d14b98fd330e43fab46e (diff) | |
download | weechat-15173364c053ed6871fdfca8408a73684bb91336.zip |
core: fix display of read marker (as horizontal line) or day change message after last buffer line when scrolling (bug #40126)
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/curses/gui-curses-chat.c | 6 |
1 files changed, 4 insertions, 2 deletions
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 */ |