Mercurial > hg > nnchat
diff main.c @ 586:7c593c9303e8
Add another tiny screen update flush check.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Sun, 07 Jul 2013 02:09:02 +0300 |
parents | 6d23385c0643 |
children | 573a3ad30938 |
line wrap: on
line diff
--- a/main.c Sun Jul 07 02:08:46 2013 +0300 +++ b/main.c Sun Jul 07 02:09:02 2013 +0300 @@ -2124,10 +2124,12 @@ editState.isError = TRUE; // Handle user input + BOOL flushed = FALSE; if (appCursesInit) { nnwin_input_process(editBuf, &editState, processUserInput); nnwin_update(editState.update, editState.mask, editBuf, optUserName, optUserColor); + flushed = TRUE; } if (++updateCount > 10) @@ -2147,7 +2149,7 @@ nn_conn_send_msg_v(conn, optUserNameEnc, "%%2FSetFontColor%%20%%2Dcolor%%20%06X", optUserColor); } - if (appCursesInit) + if (appCursesInit && !flushed) { nnwin_update(FALSE, editState.mask, editBuf, optUserName, optUserColor); }