From: David Champion Date: Tue, 29 Apr 2008 17:44:43 +0000 (-0700) Subject: [9414b9dd36db] broke softfill. (closes #3035) X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=adb3543fd6ef7b1ebebaf5c1224e03d5d3cd034c;p=neomutt [9414b9dd36db] broke softfill. (closes #3035) --- diff --git a/muttlib.c b/muttlib.c index 90ed9bb24..e0820da86 100644 --- 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)