diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2022-10-05 20:33:35 +0200 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2022-10-05 20:33:35 +0200 |
commit | 1fec7e8856e10f8f45a6de2f5eec0651b75429d6 (patch) | |
tree | 9e87b73f025d9d4693292a268a5786b9f8adcc2e /src/gui/curses/gui-curses-chat.c | |
parent | 236d22e364fe14c92b4407954332b3231b8a2b5f (diff) | |
download | weechat-1fec7e8856e10f8f45a6de2f5eec0651b75429d6.zip |
core: fix page scroll in bare display (closes #1830)
Diffstat (limited to 'src/gui/curses/gui-curses-chat.c')
-rw-r--r-- | src/gui/curses/gui-curses-chat.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/gui/curses/gui-curses-chat.c b/src/gui/curses/gui-curses-chat.c index 5ad362bbc..e8e0a9105 100644 --- a/src/gui/curses/gui-curses-chat.c +++ b/src/gui/curses/gui-curses-chat.c @@ -1806,6 +1806,13 @@ gui_chat_calculate_line_diff (struct t_gui_window *window, *line_pos = 0; } } + + /* special case for bare display */ + if (gui_window_bare_display && backward && (*line_pos > 0)) + { + *line = gui_line_get_next_displayed (*line); + *line_pos = 0; + } } /* |