]> err.no Git - util-linux/commitdiff
cfdisk: set '[New]' as default item on menu for non allocated space instead of '...
authorFrancesco Cosoleto <cosoleto@gmail.com>
Fri, 12 Feb 2010 17:51:29 +0000 (18:51 +0100)
committerKarel Zak <kzak@redhat.com>
Fri, 12 Feb 2010 18:31:41 +0000 (19:31 +0100)
Signed-off-by: Francesco Cosoleto <cosoleto@gmail.com>
fdisk/cfdisk.c

index f871cc466914863048736fb7db12d328cc490ddf..8de285b4c773d675d5aa8c87f52fb8abe0a703ed 100644 (file)
@@ -2627,7 +2627,7 @@ do_curses_fdisk(void) {
        if (p_info[cur_part].id == FREE_SPACE) {
            s = ((opentype == O_RDWR) ? "hnpquW" : "hnpqu");
            command = menuSelect(COMMAND_LINE_Y, COMMAND_LINE_X, menuMain, 10,
-               s, MENU_HORIZ | MENU_BUTTON | MENU_ACCEPT_OTHERS, 0);
+               s, MENU_HORIZ | MENU_BUTTON | MENU_ACCEPT_OTHERS, 5);
        } else if (p_info[cur_part].id > 0) {
            s = ((opentype == O_RDWR) ? "bdhmpqtuW" : "bdhmpqtu");
            command = menuSelect(COMMAND_LINE_Y, COMMAND_LINE_X, menuMain, 10,