From: Miroslav Lichvar Date: Thu, 24 Nov 2022 15:27:01 +0000 (+0100) Subject: fix spacing with longer tags in whiptail X-Git-Tag: r0-52-23~5 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=6c992e507e873cda993bffcd6e317b1ff267341a;p=thirdparty%2Fnewt.git fix spacing with longer tags in whiptail If the maximum tag length is longer than maximum item length, there was no space between tag and item columns. --- diff --git a/dialogboxes.c b/dialogboxes.c index e37cf57..13994e4 100644 --- a/dialogboxes.c +++ b/dialogboxes.c @@ -337,7 +337,6 @@ int listBox(const char * text, int height, int width, int listHeight, poptContex tagWidth = lineWidth; } else { tagWidth++; - textWidth++; while (textWidth + tagWidth + i > lineWidth) { if (textWidth >= tagWidth && textWidth > 0) textWidth--;