From 3fbcce5e87a13733ce31fde01d9aa52a400cdbad Mon Sep 17 00:00:00 2001 From: PatR Date: Sat, 8 Apr 2017 19:54:18 -0700 Subject: [PATCH] autodescribe vs DUMPLOG Keep getpos's autodescribe feedback out of the DUMPLOG message history. Unfortunately it still gets put in interface-specific message history and is liable to fill up the buffer there, forcing actual old messages to be flushed away. --- src/do_name.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/do_name.c b/src/do_name.c index 98293152e..34a853159 100644 --- a/src/do_name.c +++ b/src/do_name.c @@ -412,9 +412,10 @@ int cx, cy; cc.y = cy; if (do_screen_description(cc, TRUE, sym, tmpbuf, &firstmatch)) { (void) coord_desc(cx, cy, tmpbuf, iflags.getpos_coords); - pline("%s%s%s%s", firstmatch, *tmpbuf ? " " : "", tmpbuf, - (iflags.getloc_travelmode && !is_valid_travelpt(cx,cy)) - ? " (no travel path)" : ""); + custompline(SUPPRESS_HISTORY, + "%s%s%s%s", firstmatch, *tmpbuf ? " " : "", tmpbuf, + (iflags.getloc_travelmode && !is_valid_travelpt(cx, cy)) + ? " (no travel path)" : ""); curs(WIN_MAP, cx, cy); flush_screen(0); }