github issue #697 from copperwater points out that using a menu for pickup and attempting to give a count to pickup a subset of gold was ignoring the count and picking up all gold. That was an unintended side-effect of making '$' be a group accelerator for gold in addition to being the 'letter' for a stack of gold (so that it can be chosen even when not displayed on the current page, the way other groups behave). Picking groups via their accelerator ignored any pending count (in tty; curses seems to apply the count). Change tty to apply a pending count to all menu entries that get toggled on via group accelerator. It's intended to address the gold bug but might also be used to select one from every potion stack via '1!', for example. (Seems to be of very limited functionality, but that was more straightforward than singling out gold's group to behave differently.) While in there, change how tty uses menuitem_invert_test(): call it for set-page/set-all/unset-page/unset-all in addition to existing invert-page/invert-all. unset-page/unset-all won't actually be affected unless 'menuinvertmode' option is set to 2. Closes #697
158 KiB
158 KiB