From: Patric Mueller Date: Thu, 1 Apr 2021 20:58:46 +0000 (+0200) Subject: Missed adjustment for the increased prefix length of the perm_invent window X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=921b7b955f7847c250ab786a53dce94d18ab294f;p=nethack Missed adjustment for the increased prefix length of the perm_invent window --- diff --git a/win/curses/cursinvt.c b/win/curses/cursinvt.c index edb85934c..277d43d9d 100644 --- a/win/curses/cursinvt.c +++ b/win/curses/cursinvt.c @@ -302,9 +302,9 @@ curs_add_invt( len = strlen(str); if (accelerator) { - /* +3: ")c " inventory letter will be inserted before invtxt; + /* +4: " )c " inventory letter will be inserted before invtxt; invtxt's "a "/"an "/"the " prefix, if any, will be skipped */ - len += 3; + len += 4; if (len > pi.widest) len -= pi_article_skip(str); }