To restore it in case it was partially overwritten by the info line. Signed-off-by: Benno Schulenberg <bensberg@xxxxxxxxxxxxx> --- disk-utils/cfdisk.c | 18 +----------------- 1 files changed, 1 insertions(+), 17 deletions(-) diff --git a/disk-utils/cfdisk.c b/disk-utils/cfdisk.c index bf865d9..7dc7e65 100644 --- a/disk-utils/cfdisk.c +++ b/disk-utils/cfdisk.c @@ -1436,9 +1436,6 @@ static int ui_draw_extra(struct cfdisk *cf) static void ui_menu_goto(struct cfdisk *cf, int where) { - struct cfdisk_menuitem *d; - size_t old; - /* stop and begin/end for vertical menus */ if (cf->menu->vertical) { if (where < 0) @@ -1455,22 +1452,9 @@ static void ui_menu_goto(struct cfdisk *cf, int where) if ((size_t) where == cf->menu->idx) return; - ui_clean_info(); - - old = cf->menu->idx; cf->menu->idx = where; - if (!menuitem_on_page(cf, old)) { - ui_draw_menu(cf); - return; - } - - d = menu_get_menuitem(cf, old); - ui_draw_menuitem(cf, d, old); - - d = menu_get_menuitem(cf, where); - ui_draw_menuitem(cf, d, where); - + ui_draw_menu(cf); } static int ui_menu_move(struct cfdisk *cf, int key) -- 1.7.0.4 -- To unsubscribe from this list: send the line "unsubscribe util-linux" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html