X-Git-Url: http://ncurses.scripts.mit.edu/?p=ncurses.git;a=blobdiff_plain;f=test%2Fredraw.c;h=96c6b0f308b67a78d0438085fee300e92f0c2e32;hp=1fc306f5cd7cd83c2dd92e6a8891d4626a8822d7;hb=1d7867d33e6954be7c7121b1028ad6768f487752;hpb=950eed9ace2ceff30b88c20de1ef8a0ba05ac567 diff --git a/test/redraw.c b/test/redraw.c index 1fc306f5..96c6b0f3 100644 --- a/test/redraw.c +++ b/test/redraw.c @@ -26,7 +26,7 @@ * authorization. * ****************************************************************************/ /* - * $Id: redraw.c,v 1.6 2011/04/23 20:13:21 tom Exp $ + * $Id: redraw.c,v 1.7 2011/05/21 18:38:35 tom Exp $ * * Demonstrate the redrawwin() and wredrawln() functions. * Thomas Dickey - 2006/11/4 @@ -71,7 +71,7 @@ test_redraw(WINDOW *win) keypad(win, TRUE); getmaxyx(win, max_y, max_x); getbegyx(win, beg_y, beg_x); - while (!done) { + while (!done && win != 0) { ch = wgetch(win); getyx(win, y, x); switch (ch) {