X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=status.c;h=429a718c6d07791a342f9ae75a0ae47c84e27ae4;hp=099157d1e93dab669f307bbadd361674d259b0a8;hb=19457d3e9b0b827930530f5e8f4f04dd745d685f;hpb=1f2995420ee1612199ab8af9909159a2a8afbdab diff --git a/status.c b/status.c index 099157d..429a718 100644 --- a/status.c +++ b/status.c @@ -316,6 +316,8 @@ void menu_status_line (char* buf, size_t len, MUTTMENU* menu, const char* p) { * if we have enough space for buffer, format lines to $COLS-$SidebarWidth * only to not wrap past end of screen */ - mutt_FormatString (buf, (COLS-SW)>len?len:(COLS-SW), p, status_format_str, + int width = COLS - SW; + mutt_FormatString (buf, (width >= len ? len : (width + 1)), + p, status_format_str, (unsigned long) menu, 0); }