]> granicus.if.org Git - neomutt/commitdiff
[9414b9dd36db] broke softfill. (closes #3035)
authorDavid Champion <dgc@uchicago.edu>
Tue, 29 Apr 2008 17:44:43 +0000 (10:44 -0700)
committerDavid Champion <dgc@uchicago.edu>
Tue, 29 Apr 2008 17:44:43 +0000 (10:44 -0700)
muttlib.c

index 90ed9bb245bc2eb6e4ee527f6622454bcc897cc1..e0820da86e966b09f55d98a5b56ec658751bc991 100644 (file)
--- a/muttlib.c
+++ b/muttlib.c
@@ -1233,10 +1233,10 @@ void mutt_FormatString (char *dest,             /* output buffer */
          {
            /* \0-terminate dest for length computation in mutt_wstr_trunc() */
            *wptr = 0;
-           /* make sure right part is as most as wide as display */
+           /* make sure right part is at most as wide as display */
            len = mutt_wstr_trunc (buf, destlen, COLS, &wid);
            /* truncate left so that right part fits completely in */
-           wlen = mutt_wstr_trunc (dest, destlen - len, COLS - wid, &col);
+           wlen = mutt_wstr_trunc (dest, destlen - len, col + pad, &col);
            wptr = dest + wlen;
          }
          if (len + wlen > destlen)