fix(ui,window): manage unread indicators and paging state accurately
Add logic to track unread message indicators and the paged state in the UI window component, ensuring correct clearing and display of unread markers while navigating. Files: src/ui/window.c, src/ui/titlebar.c, src/ui/win_types.h
This commit is contained in:
@@ -268,7 +268,11 @@ _show_scrolled(ProfWin* current)
|
||||
wattroff(win, bracket_attrs);
|
||||
|
||||
wattron(win, scrolled_attrs);
|
||||
wprintw(win, "SCROLLED");
|
||||
if (current->layout->unread_msg == 0) {
|
||||
wprintw(win, "SCROLLED");
|
||||
} else {
|
||||
wprintw(win, "SCROLLED, NEW MESSAGES");
|
||||
}
|
||||
wattroff(win, scrolled_attrs);
|
||||
|
||||
wattron(win, bracket_attrs);
|
||||
|
||||
Reference in New Issue
Block a user