# HG changeset patch # User Matti Hamalainen # Date 1307763726 -10800 # Node ID 42ddc8bda6a975091ef4e6b1ec3720d4b670736c # Parent b9127815c9aaa511693644340aa954382dc05196 Sanitize RESIZE event. diff -r b9127815c9aa -r 42ddc8bda6a9 nnchat.c --- 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: