Windows option update for map_mode

Ensure preference_update() is called
This commit is contained in:
nhmall
2026-04-10 10:36:36 -04:00
parent 9172b7eb09
commit fffbf4c2e5

View File

@@ -1978,6 +1978,8 @@ optfn_map_mode(
*/
op = string_for_opt(opts, negated);
if (op != empty_optstr && !negated) {
int save_map_mode = iflags.wc_map_mode;
if (!strcmpi(op, "tiles"))
iflags.wc_map_mode = MAP_MODE_TILES;
else if (!strncmpi(op, "ascii4x6", sizeof "ascii4x6" - 1))
@@ -2012,6 +2014,11 @@ optfn_map_mode(
allopt[optidx].name, op);
return optn_err;
}
if (wc_supported("map_mode")) {
if (!iflags.wc_map_mode
|| save_map_mode != iflags.wc_map_mode)
preference_update("map_mode");
}
} else if (negated) {
bad_negation(allopt[optidx].name, TRUE);
return optn_err;