]> granicus.if.org Git - nethack/commitdiff
Indent items in perm_invent window
authorPatric Mueller <bhaak@gmx.net>
Thu, 1 Apr 2021 19:42:02 +0000 (21:42 +0200)
committerPatric Mueller <bhaak@gmx.net>
Thu, 1 Apr 2021 19:57:10 +0000 (21:57 +0200)
Add a space in front of items in the perm_invent window as in the inventory
window.

doc/fixes37.0
win/curses/cursinvt.c

index e8778a9808b2fcf787ce48a52a8f8b39be836595..50002b954f9a889cf6a4fa829af9983ac5aea319 100644 (file)
@@ -433,6 +433,7 @@ statues representing petrified creatures on Medusa's level might be from
 attempt to make corpse or statue of a named player character would yield that
        of a random monster instead when 'record' was empty; could result in
        statues of non-stonable creatures in cockatrice nests
+indent items in perm_invent window
 
 
 Fixes to 3.7.0-x Problems that Were Exposed Via git Repository
index f5fbee58b69cd25d896acc6ca207af8092777d39..edb85934ce586c4c4c7100ff4e11e100c1781217 100644 (file)
@@ -362,8 +362,9 @@ curs_show_invt(WINDOW *win)
             /* despite being shown as a menu, nothing is selectable from the
                persistent inventory window so avoid the usual highlighting
                of inventory letters */
-            wprintw(win, "%c) ", accelerator);
-            available_width -= 3; /* letter+parenthesis+space */
+            wprintw(win, " %c) ", accelerator);
+            available_width -= 4; /* space+letter+parenthesis+space */
+
             /*
              * Narrow the entries to fit more of the interesting text,
              * but defer the removal until after menu colors matching.