summaryrefslogtreecommitdiff
blob: 0f409bf2966ceb95c81df368a6c9a5de5d0f9d82 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
Index: status.c
===================================================================
--- status.c	(revision 791)
+++ status.c	(working copy)
@@ -316,6 +316,8 @@
    * 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);
 }