X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=muttlib.c;h=931c98b567022f6858a31467c0b6dc6a3cf836bc;hp=757c34fdaeb7255bbf230202fdfa98009521fc17;hb=50adaa99ec40c06e557a13394b6f7e62bcc5b9fa;hpb=ce31869e540c4f27d4a398482a44856f314883da diff --git a/muttlib.c b/muttlib.c index 757c34f..931c98b 100644 --- a/muttlib.c +++ b/muttlib.c @@ -49,6 +49,8 @@ #include #include +#define SW (option(OPTMBOXPANE)?SidebarWidth:0) + BODY *mutt_new_body (void) { BODY *p = (BODY *) mem_calloc (1, sizeof (BODY)); @@ -1013,9 +1015,7 @@ void mutt_FormatString (char *dest, /* output buffer */ if (DrawFullLine || option (OPTSTATUSONTOP)) count = (COLS < destlen ? COLS : destlen); else - count = - ((COLS - SidebarWidth) < - destlen ? (COLS - SidebarWidth) : destlen); + count = ((COLS - SW) < destlen ? (COLS - SW) : destlen); if (count > col) { count -= col; /* how many columns left on this line */ mutt_FormatString (buf, sizeof (buf), src, callback, data, flags);