Changeset 5137:0c47f7b06158 for compose.c
Legend:
- Unmodified
- Added
- Removed
-
compose.c
r5010 r5137 100 100 static void snd_entry (char *b, size_t blen, MUTTMENU *menu, int num) 101 101 { 102 mutt_FormatString (b, blen, NONULL (AttachFormat), mutt_attach_fmt,102 mutt_FormatString (b, blen, 0, NONULL (AttachFormat), mutt_attach_fmt, 103 103 (unsigned long)(((ATTACHPTR **) menu->data)[num]), 104 104 M_FORMAT_STAT_FILE | M_FORMAT_ARROWCURSOR); … … 407 407 408 408 /* prototype for use below */ 409 static void compose_status_line (char *buf, size_t buflen, MUTTMENU *menu,409 static void compose_status_line (char *buf, size_t buflen, size_t col, MUTTMENU *menu, 410 410 const char *p); 411 411 … … 423 423 424 424 static const char * 425 compose_format_str (char *buf, size_t buflen, char op, const char *src,425 compose_format_str (char *buf, size_t buflen, size_t col, char op, const char *src, 426 426 const char *prefix, const char *ifstring, 427 427 const char *elsestring, … … 466 466 467 467 if (optional) 468 compose_status_line (buf, buflen, menu, ifstring);468 compose_status_line (buf, buflen, col, menu, ifstring); 469 469 else if (flags & M_FORMAT_OPTIONAL) 470 compose_status_line (buf, buflen, menu, elsestring);470 compose_status_line (buf, buflen, col, menu, elsestring); 471 471 472 472 return (src); 473 473 } 474 474 475 static void compose_status_line (char *buf, size_t buflen, MUTTMENU *menu,475 static void compose_status_line (char *buf, size_t buflen, size_t col, MUTTMENU *menu, 476 476 const char *p) 477 477 { 478 mutt_FormatString (buf, buflen, p, compose_format_str,478 mutt_FormatString (buf, buflen, col, p, compose_format_str, 479 479 (unsigned long) menu, 0); 480 480 } … … 1276 1276 if (menu->redraw & REDRAW_STATUS) 1277 1277 { 1278 compose_status_line (buf, sizeof (buf), menu, NONULL(ComposeFormat));1278 compose_status_line (buf, sizeof (buf), 0, menu, NONULL(ComposeFormat)); 1279 1279 CLEARLINE (option (OPTSTATUSONTOP) ? 0 : LINES-2); 1280 1280 SETCOLOR (MT_COLOR_STATUS);
