]> granicus.if.org Git - mutt/commitdiff
fix bug handling wide pad char in soft-fill mode
authorMichael Elkins <me@sigpipe.org>
Tue, 13 Apr 2010 13:49:04 +0000 (06:49 -0700)
committerMichael Elkins <me@sigpipe.org>
Tue, 13 Apr 2010 13:49:04 +0000 (06:49 -0700)
muttlib.c

index 197a890d77bc978962e8088c3102765358340945..fcbf1cb71e219941abc6810ef252991428ef98bd 100644 (file)
--- a/muttlib.c
+++ b/muttlib.c
@@ -1297,7 +1297,7 @@ void mutt_FormatString (char *dest,               /* output buffer */
            /* make sure right part is at most as wide as display */
            len = mutt_wstr_trunc (buf, destlen, COLS-offset, &wid);
            /* truncate left so that right part fits completely in */
-           wlen = mutt_wstr_trunc (dest, destlen - len, col + pad -offset, &col);
+           wlen = mutt_wstr_trunc (dest, destlen - len, col + pad*pw -offset, &col);
            wptr = dest + wlen;
          }
          if (len + wlen > destlen)