]> granicus.if.org Git - nethack/commitdiff
Missed adjustment for the increased prefix length of the perm_invent window
authorPatric Mueller <bhaak@gmx.net>
Thu, 1 Apr 2021 20:58:46 +0000 (22:58 +0200)
committerPatric Mueller <bhaak@gmx.net>
Thu, 1 Apr 2021 21:07:18 +0000 (23:07 +0200)
win/curses/cursinvt.c

index edb85934ce586c4c4c7100ff4e11e100c1781217..277d43d9d88a165710305e2e6c951300993ac933 100644 (file)
@@ -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);
     }