X-Git-Url: http://git.madism.org/?a=blobdiff_plain;f=muttlib.c;h=b01619f6c29984e5ab1277ec10d03dd514531924;hb=99f13b54ae0060dae3e97e661c1d728d1dedd871;hp=b7bba5794b7be53c808f87a03d75f6931ae4b428;hpb=5088ef227c399f820df601a328ec85afaa732091;p=apps%2Fmadmutt.git diff --git a/muttlib.c b/muttlib.c index b7bba57..b01619f 100644 --- a/muttlib.c +++ b/muttlib.c @@ -1026,10 +1026,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 */ - if ( DrawFullLine ) + if ( DrawFullLine || option(OPTSTATUSONTOP)) count = (COLS < destlen ? COLS : destlen); else - count = ((COLS) < destlen ? (COLS) : destlen); + count = ((COLS-SidebarWidth) < destlen ? (COLS - SidebarWidth) : destlen); if (count > col) { count -= col; /* how many columns left on this line */