Changeset 5137:0c47f7b06158 for status.c
Legend:
- Unmodified
- Added
- Removed
-
status.c
r4343 r5137 40 40 return buf; 41 41 } 42 43 static void _menu_status_line (char *buf, size_t buflen, size_t col, MUTTMENU *menu, const char *p); 42 44 43 45 /* %b = number of incoming folders with unread messages [option] … … 59 61 * %V = currently active limit pattern [option] */ 60 62 static const char * 61 status_format_str (char *buf, size_t buflen, char op, const char *src,63 status_format_str (char *buf, size_t buflen, size_t col, char op, const char *src, 62 64 const char *prefix, const char *ifstring, 63 65 const char *elsestring, … … 287 289 288 290 if (optional) 289 menu_status_line (buf, buflen, menu, ifstring);291 _menu_status_line (buf, buflen, col, menu, ifstring); 290 292 else if (flags & M_FORMAT_OPTIONAL) 291 menu_status_line (buf, buflen, menu, elsestring);293 _menu_status_line (buf, buflen, col, menu, elsestring); 292 294 293 295 return (src); 294 296 } 295 297 298 static void _menu_status_line (char *buf, size_t buflen, size_t col, MUTTMENU *menu, const char *p) 299 { 300 mutt_FormatString (buf, buflen, col, p, status_format_str, (unsigned long) menu, 0); 301 } 302 296 303 void menu_status_line (char *buf, size_t buflen, MUTTMENU *menu, const char *p) 297 304 { 298 mutt_FormatString (buf, buflen, p, status_format_str, (unsigned long) menu, 0);305 mutt_FormatString (buf, buflen, 0, p, status_format_str, (unsigned long) menu, 0); 299 306 }
