Added assertions to check toplin state.
This commit is contained in:
+3
-3
@@ -2357,7 +2357,7 @@ boolean blocking; /* with ttys, all windows are blocking */
|
|||||||
more();
|
more();
|
||||||
ttyDisplay->toplin = TOPLINE_NEED_MORE; /* more resets this */
|
ttyDisplay->toplin = TOPLINE_NEED_MORE; /* more resets this */
|
||||||
tty_clear_nhwindow(window);
|
tty_clear_nhwindow(window);
|
||||||
/* nhassert(ttyDisplay->toplin == TOPLINE_EMPTY); */
|
nhassert(ttyDisplay->toplin == TOPLINE_EMPTY);
|
||||||
} else
|
} else
|
||||||
ttyDisplay->toplin = TOPLINE_EMPTY;
|
ttyDisplay->toplin = TOPLINE_EMPTY;
|
||||||
cw->curx = cw->cury = 0;
|
cw->curx = cw->cury = 0;
|
||||||
@@ -2445,7 +2445,7 @@ winid window;
|
|||||||
case NHW_MESSAGE:
|
case NHW_MESSAGE:
|
||||||
if (ttyDisplay->toplin != TOPLINE_EMPTY)
|
if (ttyDisplay->toplin != TOPLINE_EMPTY)
|
||||||
tty_display_nhwindow(WIN_MESSAGE, TRUE);
|
tty_display_nhwindow(WIN_MESSAGE, TRUE);
|
||||||
/* nhassert(ttyDisplay->toplin == TOPLINE_EMPTY); */
|
nhassert(ttyDisplay->toplin == TOPLINE_EMPTY);
|
||||||
/*FALLTHRU*/
|
/*FALLTHRU*/
|
||||||
case NHW_STATUS:
|
case NHW_STATUS:
|
||||||
case NHW_BASE:
|
case NHW_BASE:
|
||||||
@@ -3200,7 +3200,7 @@ const char *mesg;
|
|||||||
more();
|
more();
|
||||||
ttyDisplay->toplin = TOPLINE_NEED_MORE; /* more resets this */
|
ttyDisplay->toplin = TOPLINE_NEED_MORE; /* more resets this */
|
||||||
tty_clear_nhwindow(WIN_MESSAGE);
|
tty_clear_nhwindow(WIN_MESSAGE);
|
||||||
/* nhassert(ttyDisplay->toplin == TOPLINE_EMPTY); */
|
nhassert(ttyDisplay->toplin == TOPLINE_EMPTY);
|
||||||
}
|
}
|
||||||
/* normally <ESC> means skip further messages, but in this case
|
/* normally <ESC> means skip further messages, but in this case
|
||||||
it means cancel the current prompt; any other messages should
|
it means cancel the current prompt; any other messages should
|
||||||
|
|||||||
Reference in New Issue
Block a user