Mercurial > hg > nnchat
changeset 389:19cb995994c9
Change screen update strategy a bit.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Sun, 20 May 2012 23:35:00 +0300 |
parents | f45673fe6b23 |
children | acea18a741e3 |
files | nnchat.c |
diffstat | 1 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/nnchat.c Sun May 20 23:33:46 2012 +0300 +++ b/nnchat.c Sun May 20 23:35:00 2012 +0300 @@ -1837,14 +1837,15 @@ } } while (c != ERR && !exitProg && ++cnt < 10); + updateMainWin(updateMain); + if (update || firstUpdate) { /* Update edit line */ + updateStatus(); printEditBuf(editBuf); - updateStatus(); firstUpdate = FALSE; /* a nasty hack ... */ } - updateMainWin(updateMain); } /* cursesInit */ if (++updateCount > 10) { @@ -1862,6 +1863,7 @@ } updateStatus(); + printEditBuf(editBuf); updateCount = 0; }