mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-31 04:56:22 +00:00
fix(ai): reset paged flag to display user message
When the user scrolls up to view history, the paged flag is set to 1. This suppresses new messages in _win_printf(). Reset paged and unread_msg flags before printing to ensure visibility.
This commit is contained in:
@@ -301,6 +301,12 @@ cl_ev_send_ai_msg(ProfAiWin* aiwin, const char* const message, const char* const
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Reset paged flag before printing user message.
|
||||||
|
* If the user scrolled up to view history, paged=1 would suppress
|
||||||
|
* the message in _win_printf(). Reset it here so the message displays. */
|
||||||
|
aiwin->window.layout->paged = 0;
|
||||||
|
aiwin->window.layout->unread_msg = 0;
|
||||||
|
|
||||||
// Display user message in AI window.
|
// Display user message in AI window.
|
||||||
win_print_outgoing(&aiwin->window, ">>", id, NULL, message);
|
win_print_outgoing(&aiwin->window, ">>", id, NULL, message);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user