]> git.ipfire.org Git - thirdparty/newt.git/commitdiff
fix spacing with longer tags in whiptail
authorMiroslav Lichvar <mlichvar@redhat.com>
Thu, 24 Nov 2022 15:27:01 +0000 (16:27 +0100)
committerMiroslav Lichvar <mlichvar@redhat.com>
Thu, 24 Nov 2022 16:21:29 +0000 (17:21 +0100)
If the maximum tag length is longer than maximum item length, there was
no space between tag and item columns.

dialogboxes.c

index e37cf579d0a9557217c13247f6b1955f89aa333a..13994e4d1f9938ae1f8960ef88f409f1634c4627 100644 (file)
@@ -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--;