alternative fix for menu search (':')

This avoids clearing core context variables within a window port.
This commit is contained in:
nhmall
2023-11-17 08:37:54 -05:00
parent a49c872f47
commit 8d1001842d
6 changed files with 19 additions and 11 deletions
-9
View File
@@ -58,16 +58,7 @@ hooked_tty_getlin(
/*
* Issue the prompt.
*
* custompline() will call vpline() which calls flush_screen() which
* calls bot(). We don't want bot() modifying the screen during
* whatever this prompt is for. If the status area hasn't been
* overwritten, no update is needed, but if has been overwritten (by
* a menu or text window) we don't want status refresh to clobber that
* when the window hasn't finished yet. [Fix for menu search via ':'.]
*/
if (ttyDisplay->lastwin != WIN_STATUS)
gc.context.botl = gc.context.botlx = iflags.time_botl = FALSE;
custompline(OVERRIDE_MSGTYPE | SUPPRESS_HISTORY, "%s ", query);
#ifdef EDIT_GETLIN