X-Git-Url: https://ncurses.scripts.mit.edu/?p=ncurses.git;a=blobdiff_plain;f=test%2Ftest_add_wchstr.c;h=c509f0035ac55129d34ce3e2764620d7b9da2ada;hp=6b1b2d7a54be7c18babbabeae266d8e4437b67dd;hb=a0bb9c404174926bf131a5989a0524a6eecd09eb;hpb=8554ac8f8bb70116fbc962f529168d273e950e2b diff --git a/test/test_add_wchstr.c b/test/test_add_wchstr.c index 6b1b2d7a..c509f003 100644 --- a/test/test_add_wchstr.c +++ b/test/test_add_wchstr.c @@ -26,7 +26,7 @@ * authorization. * ****************************************************************************/ /* - * $Id: test_add_wchstr.c,v 1.19 2012/11/24 20:04:13 tom Exp $ + * $Id: test_add_wchstr.c,v 1.20 2012/12/16 00:12:04 tom Exp $ * * Demonstrate the waddwchstr() and wadd_wch functions. * Thomas Dickey - 2009/9/12 @@ -371,11 +371,13 @@ test_add_wchstr(int level) case key_RECUR: test_add_wchstr(level + 1); - touchwin(look); + if (look) + touchwin(look); touchwin(work); touchwin(show); - wnoutrefresh(look); + if (look) + wnoutrefresh(look); wnoutrefresh(work); wnoutrefresh(show);