Mercurial > hg > nnchat
changeset 320:42ddc8bda6a9
Sanitize RESIZE event.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Sat, 11 Jun 2011 06:42:06 +0300 |
parents | b9127815c9aa |
children | 384d508d1df3 |
files | nnchat.c |
diffstat | 1 files changed, 3 insertions(+), 8 deletions(-) [+] |
line wrap: on
line diff
--- a/nnchat.c Sat Jun 11 06:41:37 2011 +0300 +++ b/nnchat.c Sat Jun 11 06:42:06 2011 +0300 @@ -1568,18 +1568,14 @@ #ifdef KEY_RESIZE case KEY_RESIZE: resize_term(0, 0); - erase(); -#ifdef PDCURSES timeout(SET_DELAY); -#endif - + if (!initializeWindows()) { errorMsg("Error resizing curses chatWindows\n"); isError = TRUE; } - update = TRUE; - updateMain = TRUE; + update = updateMain = TRUE; break; #endif @@ -1704,8 +1700,7 @@ case 0x0c: /* Ctrl + L */ updateWindows(); - update = TRUE; - updateMain = TRUE; + update = updateMain = TRUE; break; case KEY_NPAGE: