]> granicus.if.org Git - nethack/commit
X11 extended command menu scrolling
authorPatR <rankin@nethack.org>
Mon, 15 Feb 2016 08:59:33 +0000 (00:59 -0800)
committerPatR <rankin@nethack.org>
Mon, 15 Feb 2016 08:59:33 +0000 (00:59 -0800)
commit8d2a74b5b03b2fb7b44367ef04b470ba23933dca
tree43b083be3df2f626c4c5a265e13774c7b0f86318
parent640267f53a658b7ca049a6337b3b1ae27d27993f
X11 extended command menu scrolling

When the extended command menu auto-scrolls as the player types in
characters, scroll so that all matching entries come into view rather
than just the first one.  For example, it someone types 'w', instead
of just highlighting and showing "wipe", it will highlight "wipe"
(because that has become the default response when <return> is used)
but also show "wiz-this", "wiz-that", and "wmode".  It actually shows
one extra entry beyond the last matching one--so you can see that
there aren't any more ambiguous choices--except for 'w' where "wmode"
is the very last extended command.

Previously, on subsequent popups of the extended command menu, the
scrollbar's slider was left drawn in the position it was in during
the previous time even though menu content wasn't scrolled.  Now it's
forced back to the top (non-scrolled) position when that menu is
popped up.
win/X11/winmisc.c