invent menu fixes (mostly menustyle:Traditional)
commitd02ba846846f9744553376785581105c0609519e
authorPatR <rankin@nethack.org>
Sun, 17 Apr 2016 23:50:25 +0000 (17 16:50 -0700)
committerPatR <rankin@nethack.org>
Sun, 17 Apr 2016 23:50:25 +0000 (17 16:50 -0700)
treecc71ff65e0d3bf0205043e163151325ce0adf29a
parent8132cb5a42fc0f6f0e6dced8cdeab8ea9c8e6267
invent menu fixes (mostly menustyle:Traditional)

For menustyle:Traditional, the object class prompt for 'D' includes
an entry choice of 'm' to request a menu.  Supplying real classes
and 'm' resulted in a menu limited to those classes, as intended,
but any of BUCX for curse/bless state and 'm' without any actual
classes resulted in a menu of entire invent.  A one-line fix once
the proper place for that fix was located.

For menustyle:Traditional or menustyle:Combination, 'A' includes an
extra choice of 'i' to examine relevant inventory prior to choosing
object classes (and object identification also offers that), but
the inventory display showed everything rather than just the items
applicable to 'A' (or to object ID).  Figuring out where to apply
the fix was trivial, but the fix itself was a bit more involved and
it exposed a latent bug in display_pickinv(): "" was supposed to be
the same as NULL when passed in as list of target inventory letters,
but it wasn't being handled correctly.
doc/fixes36.1
src/invent.c