]> 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>
Tue, 16 Feb 2010 08:58:58 +0000 (09:58 +0100)
Signed-off-by: Francesco Cosoleto <cosoleto@gmail.com>
fdisk/cfdisk.c

index a3a14d8a0d134a936ecdfe38738d7dd697a54f87..4fb41529fef08b73325d4e3fc4b8cfa6acd2e2ca 100644 (file)
@@ -2785,7 +2785,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,