From: Miroslav Lichvar Date: Mon, 28 Nov 2022 15:04:40 +0000 (+0100) Subject: fix automatic size of whiptail --yesno box X-Git-Tag: r0-52-23~2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b2a4d9010e8de0b90eef8a14f13c27054c31bcee;p=thirdparty%2Fnewt.git fix automatic size of whiptail --yesno box --- diff --git a/whiptail.c b/whiptail.c index 2ee42d0..79f6c3b 100644 --- a/whiptail.c +++ b/whiptail.c @@ -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;