From dd949cf185044e776f53f3d5b0e6e9b0de0adb9c Mon Sep 17 00:00:00 2001 From: janne-hmp Date: Sat, 11 Jun 2022 16:50:04 +0300 Subject: [PATCH] Changed the comparison length of "the " from 3 to 4 to account for the space in the end. --- src/insight.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/insight.c b/src/insight.c index c0f574f15..3dd58b696 100644 --- a/src/insight.c +++ b/src/insight.c @@ -2744,7 +2744,7 @@ list_vanquished(char defquery, boolean ask) makeplural(mons[i].pmnames[NEUTRAL])); } /* number of leading spaces to match 3 digit prefix */ - pfx = !strncmpi(buf, "the ", 3) ? 0 + pfx = !strncmpi(buf, "the ", 4) ? 0 : !strncmpi(buf, "an ", 3) ? 1 : !strncmpi(buf, "a ", 2) ? 2 : !digit(buf[2]) ? 4 : 0; -- 2.50.1