diff options
Diffstat (limited to 'src/gui/curses')
-rw-r--r-- | src/gui/curses/gui-curses-window.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/gui/curses/gui-curses-window.c b/src/gui/curses/gui-curses-window.c index 156dd033d..6c92d34a7 100644 --- a/src/gui/curses/gui-curses-window.c +++ b/src/gui/curses/gui-curses-window.c @@ -1293,7 +1293,8 @@ gui_window_page_down (struct t_gui_window *window) switch (window->buffer->type) { case GUI_BUFFER_TYPE_FORMATTED: - if (window->scroll->start_line) + if (window->scroll->start_line + && (window->scroll->start_line_pos >= 0)) { gui_chat_calculate_line_diff (window, &window->scroll->start_line, &window->scroll->start_line_pos, @@ -1382,7 +1383,8 @@ gui_window_scroll_down (struct t_gui_window *window) switch (window->buffer->type) { case GUI_BUFFER_TYPE_FORMATTED: - if (window->scroll->start_line) + if (window->scroll->start_line + && (window->scroll->start_line_pos >= 0)) { gui_chat_calculate_line_diff (window, &window->scroll->start_line, &window->scroll->start_line_pos, |