X-Git-Url: http://ncurses.scripts.mit.edu/?p=ncurses.git;a=blobdiff_plain;f=test%2Finserts.c;h=ae38fa21752167566de9d00a92f67521c916f50a;hp=ffac333691864dcc242838760fb19676ab0183ed;hb=bcdff1f4b369c01b695ca2b73e9aaac54f9c4526;hpb=64f44b13d30e0a7bc2921a9d43755423f81564fd diff --git a/test/inserts.c b/test/inserts.c index ffac3336..ae38fa21 100644 --- a/test/inserts.c +++ b/test/inserts.c @@ -26,7 +26,7 @@ * authorization. * ****************************************************************************/ /* - * $Id: inserts.c,v 1.26 2012/12/09 00:51:51 tom Exp $ + * $Id: inserts.c,v 1.27 2012/12/16 00:35:27 tom Exp $ * * Demonstrate the winsstr() and winsch functions. * Thomas Dickey - 2002/10/19 @@ -219,11 +219,13 @@ test_inserts(int level) case key_RECUR: test_inserts(level + 1); - touchwin(look); + if (look) + touchwin(look); touchwin(work); touchwin(show); - wnoutrefresh(look); + if (look) + wnoutrefresh(look); wnoutrefresh(work); wnoutrefresh(show);