Windows option update for map_mode
Ensure preference_update() is called
This commit is contained in:
@@ -1978,6 +1978,8 @@ optfn_map_mode(
|
|||||||
*/
|
*/
|
||||||
op = string_for_opt(opts, negated);
|
op = string_for_opt(opts, negated);
|
||||||
if (op != empty_optstr && !negated) {
|
if (op != empty_optstr && !negated) {
|
||||||
|
int save_map_mode = iflags.wc_map_mode;
|
||||||
|
|
||||||
if (!strcmpi(op, "tiles"))
|
if (!strcmpi(op, "tiles"))
|
||||||
iflags.wc_map_mode = MAP_MODE_TILES;
|
iflags.wc_map_mode = MAP_MODE_TILES;
|
||||||
else if (!strncmpi(op, "ascii4x6", sizeof "ascii4x6" - 1))
|
else if (!strncmpi(op, "ascii4x6", sizeof "ascii4x6" - 1))
|
||||||
@@ -2012,6 +2014,11 @@ optfn_map_mode(
|
|||||||
allopt[optidx].name, op);
|
allopt[optidx].name, op);
|
||||||
return optn_err;
|
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) {
|
} else if (negated) {
|
||||||
bad_negation(allopt[optidx].name, TRUE);
|
bad_negation(allopt[optidx].name, TRUE);
|
||||||
return optn_err;
|
return optn_err;
|
||||||
|
|||||||
Reference in New Issue
Block a user