diff --git a/src/event/client_events.c b/src/event/client_events.c index b90218db..6adfc612 100644 --- a/src/event/client_events.c +++ b/src/event/client_events.c @@ -301,6 +301,12 @@ cl_ev_send_ai_msg(ProfAiWin* aiwin, const char* const message, const char* const 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. win_print_outgoing(&aiwin->window, ">>", id, NULL, message);