]> granicus.if.org Git - nethack/commitdiff
fix perm_invent via 'O' border issue
authornhmall <nhmall@nethack.org>
Sat, 25 Jun 2022 00:10:11 +0000 (20:10 -0400)
committernhmall <nhmall@nethack.org>
Sat, 25 Jun 2022 00:10:11 +0000 (20:10 -0400)
> Start with default symbol set and with perm_invent Off.
> Use 'O' to change perm_invent to On.  The inventory with
> boundary box lines will briefly appear, then immediately be
> redrawn without those lines.

win/tty/wintty.c

index 89ad5baeb437021b29a20b252e91310412defa5b..889d430f5974310491c16a0112d538c2bf07974d 100644 (file)
@@ -560,7 +560,8 @@ tty_preference_update(const char *pref)
        than temporary switch to the rogue one), redraw perm_invent; not
        only might individual symbols change (punctuation vs line drawing),
        the way to render them might change too (Handling: DEC/UTF8/&c) */
-    if (!strcmp(pref, "symset") && iflags.window_inited) {
+    if ((!strcmp(pref, "symset") || !strcmp(pref, "perm_invent"))
+        && iflags.window_inited) {
        if (g.perm_invent_win != WIN_ERR)
            tty_invent_box_glyph_init(wins[g.perm_invent_win]);
     }