CVSROOT:        /cvs
Module name:    src
Changes by:     n...@cvs.openbsd.org    2013/10/10 05:58:53

Modified files:
        usr.bin/tmux   : cmd-choose-tree.c window-choose.c 

Log message:
choose-tree: Reset top when toggling items

When choose-tree is told to expand/collapse items (especially when first
rendering collapsed to just show sessions), ensure that in addition to
setting the selected item, that the item itself appears on the bottom of
the screen, rather than off screen.

This was causing rendering glitches when a very small tmux window tried
to render a list of items in choose-tree much larger than itself, and
the selected item appeared off screen, and didn't show the selection
until the selection had wrapped around to the top of the screen.

Reply via email to