From b2a4d9010e8de0b90eef8a14f13c27054c31bcee Mon Sep 17 00:00:00 2001 From: Miroslav Lichvar Date: Mon, 28 Nov 2022 16:04:40 +0100 Subject: [PATCH] fix automatic size of whiptail --yesno box --- whiptail.c | 2 ++ 1 file changed, 2 insertions(+) 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; -- 2.47.3