From 2be47f1d937a0e584633cb5212b1d6abc738a1b2 Mon Sep 17 00:00:00 2001 From: PatR Date: Sun, 3 Dec 2023 18:22:29 -0800 Subject: [PATCH] options bit: wizweight Persistent inventory window wasn't being updated right away if the 'wizweight' option was toggled via 'm O'. --- src/options.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/options.c b/src/options.c index 69934dee0..e8d758d95 100644 --- a/src/options.c +++ b/src/options.c @@ -4886,7 +4886,9 @@ pfxfn_IBM_(int optidx UNUSED, int req, boolean negated UNUSED, */ static int -optfn_boolean(int optidx, int req, boolean negated, char *opts, char *op) +optfn_boolean( + int optidx, int req, boolean negated, + char *opts, char *op) { if (req == do_init) { return optn_ok; @@ -5011,6 +5013,7 @@ optfn_boolean(int optidx, int req, boolean negated, char *opts, char *op) case opt_fixinv: case opt_sortpack: case opt_implicit_uncursed: + case opt_wizweight: if (!flags.invlet_constant) reassign(); update_inventory(); @@ -5076,7 +5079,6 @@ optfn_boolean(int optidx, int req, boolean negated, char *opts, char *op) #endif go.opt_need_redraw = TRUE; go.opt_need_glyph_reset = TRUE; - go.opt_need_promptstyle = TRUE; break; case opt_menucolors: case opt_guicolor: