projects
/
apps
/
madmutt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
more and more cleansing
[apps/madmutt.git]
/
status.c
diff --git
a/status.c
b/status.c
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
*/
* 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);
}
(unsigned long) menu, 0);
}