]> git.ipfire.org Git - thirdparty/newt.git/blobdiff - whiptail.c
fix automatic size of whiptail --yesno box
[thirdparty/newt.git] / whiptail.c
index 2ee42d0bbcbe81a0066e4fd9bcc155d0b04df325..79f6c3b1f6cbce1328c670d0aa0bb1787b41756e 100644 (file)
@@ -266,6 +266,8 @@ static void guessSize(int * height, int * width, int * listHeight,
            menuSize(&h, &w, listHeight, mode, flags, options);
                break;
        case MODE_YESNO:
+           spaceForButtons(&h, &w, 2, fullButtons);
+           break;
        case MODE_MSGBOX:
            spaceForButtons(&h, &w, 1, fullButtons);
            break;