fix(ui): reset paged flag at buffer bottom for non-chat windows
Some checks failed
CI Code / Code Coverage (pull_request) Failing after 10m34s
CI Code / Check spelling (pull_request) Failing after 11m11s
CI Code / Check coding style (pull_request) Failing after 11m42s
CI Code / Linux (ubuntu) (pull_request) Failing after 12m25s
CI Code / Linux (debian) (pull_request) Failing after 13m2s
CI Code / Linux (arch) (pull_request) Failing after 13m33s

This commit is contained in:
2026-05-10 15:09:32 +03:00
parent 010b2062a4
commit c167f48714

View File

@@ -848,6 +848,14 @@ win_page_down(ProfWin* window, int scroll_size)
window->layout->paged = 0;
window->layout->unread_msg = 0;
}
// Non-chat windows have no DB to fetch from, so WIN_SCROLL_REACHED_BOTTOM
// never fires; reset paged once the buffer's last line is on screen.
if (window->type != WIN_CHAT
&& (total_rows - *page_start) <= page_space + 1) {
window->layout->paged = 0;
window->layout->unread_msg = 0;
}
}
void