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

View File

@@ -245,6 +245,8 @@ do_statusline2(void)
void
bot(void)
{
if (gp.program_state.in_getlin)
return;
/* dosave() flags completion by setting u.uhp to -1; suppress_map_output()
covers program_state.restoring and is used for status as well as map */
if (u.uhp != -1 && gy.youmonst.data
@@ -265,6 +267,8 @@ bot(void)
void
timebot(void)
{
if (gp.program_state.in_getlin)
return;
/* we're called when iflags.time_botl is set and general gc.context.botl
is clear; iflags.time_botl gets set whenever gm.moves changes value
so there's no benefit in tracking previous value to decide whether