From 1c2cf78b483cf0abe6f02044682e72742f14d02d Mon Sep 17 00:00:00 2001 From: nhmall Date: Fri, 24 Jun 2022 20:10:11 -0400 Subject: [PATCH] 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. --- win/tty/wintty.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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]); }