From: pdmef Date: Thu, 23 Mar 2006 10:14:02 +0000 (+0000) Subject: Rocco Rutte: X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=commitdiff_plain;h=19457d3e9b0b827930530f5e8f4f04dd745d685f;ds=sidebyside Rocco Rutte: - include patch #937 to fix bug #6771 git-svn-id: svn://svn.berlios.de/mutt-ng/trunk@793 e385b8ad-14ed-0310-8656-cc95a2468c6d --- diff --git a/VERSION.svn b/VERSION.svn index 16331dd..6822652 100644 --- a/VERSION.svn +++ b/VERSION.svn @@ -1 +1 @@ -792 +793 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); }