Turn statushilites on automatically if any are defined

This commit is contained in:
Pasi Kallinen
2022-08-14 22:32:09 +03:00
parent 549dfb92ea
commit f156b0f660
2 changed files with 4 additions and 2 deletions
+1
View File
@@ -999,6 +999,7 @@ turn on menucolors boolean automatically if any menucolors are defined
blind hero was notified when brass lantern burned out even though it isn't blind hero was notified when brass lantern burned out even though it isn't
warm enough to detect that by touch; manually switching the lantern warm enough to detect that by touch; manually switching the lantern
on or off can be determined that way so still gives on/off message on or off can be determined that way so still gives on/off message
turn on statushilites automatically if any are defined
Fixes to 3.7.0-x Problems that Were Exposed Via git Repository Fixes to 3.7.0-x Problems that Were Exposed Via git Repository
+3 -2
View File
@@ -2222,6 +2222,8 @@ parse_status_hl1(char *op, boolean from_configfile)
} }
if (badopt) if (badopt)
return FALSE; return FALSE;
else if (!iflags.hilite_delta)
iflags.hilite_delta = 3L;
return TRUE; return TRUE;
} }
@@ -4118,8 +4120,7 @@ status_hilite_menu(void)
number of turns for temporary highlights to remain visible number of turns for temporary highlights to remain visible
and also when non-zero it is the flag to enable highlighting */ and also when non-zero it is the flag to enable highlighting */
if (countall > 0 && !iflags.hilite_delta) if (countall > 0 && !iflags.hilite_delta)
pline( iflags.hilite_delta = 3L;
"To have highlights become active, set 'statushilites' option to non-zero.");
return TRUE; return TRUE;
} }