Avoid calling Curses after it is shut down

This commit is contained in:
Ray Chason
2023-12-07 07:07:21 -05:00
parent 5dc94f3d83
commit df66ee1ad9

View File

@@ -841,9 +841,11 @@ wait_synch() -- Wait until all pending output is complete (*flush*() for
void void
curses_wait_synch(void) curses_wait_synch(void)
{ {
if (curses_got_output()) if (iflags.window_inited) {
(void) curses_more(); if (curses_got_output())
curses_mark_synch(); (void) curses_more();
curses_mark_synch();
}
/* [do we need 'if (counting) curses_count_window((char *)0);' here?] */ /* [do we need 'if (counting) curses_count_window((char *)0);' here?] */
} }