diff options
author | Jeremy Kerr <jk@ozlabs.org> | 2014-03-03 18:15:31 +0800 |
---|---|---|
committer | Jeremy Kerr <jk@ozlabs.org> | 2014-03-03 18:15:31 +0800 |
commit | 67d0ca0764e5ab9a0d0e5baa5bf062d0ac5c8596 (patch) | |
tree | d9cbfa9de19a06bfcd7b633884202041974361e8 /discover/udev.c | |
parent | 5a604632c54671d65ccb3398a928c0c38c5f13ad (diff) | |
download | petitboot-67d0ca0764e5ab9a0d0e5baa5bf062d0ac5c8596.zip petitboot-67d0ca0764e5ab9a0d0e5baa5bf062d0ac5c8596.tar.gz |
ui/ncurses: Ensure that the selected menu item is visible
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>
Diffstat (limited to 'discover/udev.c')
0 files changed, 0 insertions, 0 deletions