mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-18 23:16:22 +00:00
fix(ui): reset paged flag at buffer bottom for non-chat windows
This commit is contained in:
@@ -848,6 +848,14 @@ win_page_down(ProfWin* window, int scroll_size)
|
|||||||
window->layout->paged = 0;
|
window->layout->paged = 0;
|
||||||
window->layout->unread_msg = 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
|
void
|
||||||
|
|||||||
Reference in New Issue
Block a user