]> git.ipfire.org Git - thirdparty/newt.git/commitdiff
fix automatic size of whiptail --yesno box
authorMiroslav Lichvar <mlichvar@redhat.com>
Mon, 28 Nov 2022 15:04:40 +0000 (16:04 +0100)
committerMiroslav Lichvar <mlichvar@redhat.com>
Mon, 28 Nov 2022 16:19:20 +0000 (17:19 +0100)
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;