From 767a20e21f5b541b189e9b83ffbbc8c83121dc3f Mon Sep 17 00:00:00 2001 From: Pasi Kallinen Date: Sat, 28 Dec 2024 20:41:35 +0200 Subject: [PATCH] Hacky fix for pline recursion outputting raw_print When glyph updates are on, pline can be called recursively when the vision is being fully recalculated. This caused the recursively called pline to output raw_pline text. Not sure if this is the correct way to fix it, but can't really turn off or block the glyph update notices either ... --- src/pline.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/pline.c b/src/pline.c index 2e0257284..13ec79924 100644 --- a/src/pline.c +++ b/src/pline.c @@ -257,8 +257,13 @@ vpline(const char *line, va_list the_args) goto pline_done; } - if (gv.vision_full_recalc) + if (gv.vision_full_recalc) { + int tmp_in_pline = in_pline; + + in_pline = 0; vision_recalc(0); + in_pline = tmp_in_pline; + } if (u.ux) flush_screen((gp.pline_flags & NO_CURS_ON_U) ? 0 : 1); /* %% */