From: Patric Mueller Date: Thu, 1 Apr 2021 19:42:02 +0000 (+0200) Subject: Indent items in perm_invent window X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2805a135a384cf03eca6b678e4a07b2a9898bf09;p=nethack Indent items in perm_invent window Add a space in front of items in the perm_invent window as in the inventory window. --- diff --git a/doc/fixes37.0 b/doc/fixes37.0 index e8778a980..50002b954 100644 --- a/doc/fixes37.0 +++ b/doc/fixes37.0 @@ -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 diff --git a/win/curses/cursinvt.c b/win/curses/cursinvt.c index f5fbee58b..edb85934c 100644 --- a/win/curses/cursinvt.c +++ b/win/curses/cursinvt.c @@ -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.