Fix scroll/paging state and buffer handling #45

Manually merged
jabber.developer merged 6 commits from playground/fix/scroll-stuck into master 2026-01-07 10:56:04 +00:00
3 changed files with 25 additions and 5 deletions
Showing only changes of commit 89f75575a5 - Show all commits

View File

@@ -750,8 +750,9 @@ win_page_down(ProfWin* window, int scroll_size)
win_update_virtual(window);
}
/*switch off page if no messages left to read
TODO: update buffer end handling to check meassages just after last entry*/
/* Switch off page if no messages left to read.
jabber.developer marked this conversation as resolved Outdated

Could you apply our standard formatting (should apply automatically on ctrl+shift+i in VSCode)? It will fix the CI

Could you apply our standard formatting (should apply automatically on `ctrl+shift+i` in VSCode)? It will fix the CI
* TODO: update buffer end handling to check messages just after last entry.
*/
if (*scroll_state == WIN_SCROLL_REACHED_BOTTOM) {
window->layout->paged = 0;
window->layout->unread_msg = 0;