Rocco Rutte:
authorpdmef <pdmef@e385b8ad-14ed-0310-8656-cc95a2468c6d>
Thu, 23 Mar 2006 10:14:02 +0000 (10:14 +0000)
committerpdmef <pdmef@e385b8ad-14ed-0310-8656-cc95a2468c6d>
Thu, 23 Mar 2006 10:14:02 +0000 (10:14 +0000)
- include patch #937 to fix bug #6771

git-svn-id: svn://svn.berlios.de/mutt-ng/trunk@793 e385b8ad-14ed-0310-8656-cc95a2468c6d

VERSION.svn
status.c

index 16331dd..6822652 100644 (file)
@@ -1 +1 @@
-792
+793
index 099157d..429a718 100644 (file)
--- 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);
 }