From: nhmall Date: Sat, 25 Jun 2022 00:10:11 +0000 (-0400) Subject: fix perm_invent via 'O' border issue X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1c2cf78b483cf0abe6f02044682e72742f14d02d;p=nethack fix perm_invent via 'O' border issue > 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. --- diff --git a/win/tty/wintty.c b/win/tty/wintty.c index 89ad5baeb..889d430f5 100644 --- a/win/tty/wintty.c +++ b/win/tty/wintty.c @@ -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]); }