Indent items in perm_invent window

Add a space in front of items in the perm_invent window as in the inventory
window.
This commit is contained in:
Patric Mueller
2021-04-01 21:42:02 +02:00
parent 495aaf33f6
commit 2805a135a3
2 changed files with 4 additions and 2 deletions

View 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

View 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.