X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=muttlib.c;h=7092882e844b759a76a0fa687bf9a048f2c04d17;hp=038010dc01f81595853239485e1a764135704fbe;hb=07232d8229d07417da518d8c68a80f5386905d8d;hpb=6833ce8bdca2d64e14485118f2a4417b7e1cb1b1 diff --git a/muttlib.c b/muttlib.c index 038010d..7092882 100644 --- a/muttlib.c +++ b/muttlib.c @@ -1014,7 +1014,10 @@ void mutt_FormatString (char *dest, /* output buffer */ ch = *src++; /* pad char */ /* calculate space left on line. if we've already written more data than will fit on the line, ignore the rest of the line */ - count = (COLS < destlen ? COLS : destlen); + if ( DrawFullLine ) + count = (COLS < destlen ? COLS : destlen); + else + count = ((COLS-SidebarWidth) < destlen ? COLS - SidebarWidth : destlen); if (count > wlen) { count -= wlen; /* how many chars left on this line */