]> git.ozlabs.org Git - petitboot/commitdiff
ui/ncurses: Ensure that the selected menu item is visible
authorJeremy Kerr <jk@ozlabs.org>
Mon, 3 Mar 2014 10:15:31 +0000 (18:15 +0800)
committerJeremy Kerr <jk@ozlabs.org>
Mon, 3 Mar 2014 10:15:31 +0000 (18:15 +0800)
When adding new items to the petitboot menu, we need to ensure that the
scroll position of the menu includes the currently-selected item.

This change adds a call to set_top_row, calculated from the selected
item index, and the number of rows in the menu.

Signed-off-by: Jeremy Kerr <jk@ozlabs.org>

No differences found