]> git.ipfire.org Git - thirdparty/newt.git/commitdiff
halved the penalty for short lines
authorewt <ewt>
Wed, 17 Sep 1997 02:12:38 +0000 (02:12 +0000)
committerewt <ewt>
Wed, 17 Sep 1997 02:12:38 +0000 (02:12 +0000)
textbox.c

index ac8e51dbf216660899374892573b1282560f4119..4a4757d82fdf8dd66f790e2b172fd7d8e63d8a7d 100644 (file)
--- a/textbox.c
+++ b/textbox.c
@@ -99,7 +99,7 @@ static void doReflow(char * text, char ** resultPtr, int width, int * badness,
                }
 
                if (end - text < (width / 2))
-                   howbad += (width / 2) - (end - text);
+                   howbad += ((width / 2) - (end - text)) / 2;
                text = end;
                if (*text) text++;
            } else {