]> diplodocus.org Git - nmh/commitdiff
Calculate "characters to use in for current line" based on starting a new
authorKen Hornstein <kenh@pobox.com>
Wed, 26 Feb 2014 02:14:51 +0000 (21:14 -0500)
committerKen Hornstein <kenh@pobox.com>
Wed, 26 Feb 2014 02:14:51 +0000 (21:14 -0500)
line, rather than the number of characters in the previous line.

uip/mhparse.c

index 1b83ae87e1c334d9060d5928469c466b286a11b6..c381bb8583f298a066de0609069ef994ddf8e61e 100644 (file)
@@ -3463,7 +3463,7 @@ output_params(size_t initialwidth, PM params, int *offsetout)
 
        while (curlen + 8 > CPERLIN - 1) {
            int curvallen = strlen(params->pm_value + valoff) -
 
        while (curlen + 8 > CPERLIN - 1) {
            int curvallen = strlen(params->pm_value + valoff) -
-                               (initialwidth + curlen - (CPERLIN - 1));
+                               (curlen + 8 - (CPERLIN - 1));
 
            *q++ = ';';
            *q++ = '\n';
 
            *q++ = ';';
            *q++ = '\n';