Prevent selecting all options in #optionsfull menu

No-one ever intentionally selected all entries in the options
menu.  Prevent it from happening by accident.
This commit is contained in:
Pasi Kallinen
2026-04-11 18:37:45 +03:00
parent f6e341546d
commit 9d27cfe8b8
2 changed files with 3 additions and 2 deletions

View File

@@ -8862,7 +8862,7 @@ doset(void) /* changing options via menu by Per Liboriussen */
enhance_menu_text(buf, sizeof buf, pass, bool_p,
&allopt[i]);
add_menu(tmpwin, &nul_glyphinfo, &any, 0, 0,
ATR_NONE, clr, buf, MENU_ITEMFLAGS_NONE);
ATR_NONE, clr, buf, MENU_ITEMFLAGS_SKIPINVERT);
}
add_menu_str(tmpwin, "");
@@ -9067,7 +9067,7 @@ doset_add_menu(
indent = !any.a_int ? " " : "";
Sprintf(buf, fmtstr, indent, option, value);
add_menu(win, &nul_glyphinfo, &any, 0, 0,
ATR_NONE, clr, buf, MENU_ITEMFLAGS_NONE);
ATR_NONE, clr, buf, MENU_ITEMFLAGS_SKIPINVERT);
}