diff options
author | Rocco Rutte <pdmef@gmx.net> | 2007-09-19 11:53:03 +0200 |
---|---|---|
committer | Rocco Rutte <pdmef@gmx.net> | 2007-09-19 11:53:03 +0200 |
commit | d7ae4143291246a8d73868e9ad0aa07484fba234 (patch) | |
tree | 03f24f94c9c6c0093bfc7d7a9bcf1127f9d13baa /compose.c | |
parent | 4f178990bee66d39f58c41a25d5d46ae81498900 (diff) |
Use mutt_paddstr() to print compose menu's status line rather than printw().
All other menus use mutt_paddstr(): printw() prints only N bytes, not N columns.
Diffstat (limited to 'compose.c')
-rw-r--r-- | compose.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -1275,11 +1275,13 @@ int mutt_compose_menu (HEADER *msg, /* structure for new message */ /* Draw formated compose status line */ if (menu->redraw & REDRAW_STATUS) { - compose_status_line (buf, sizeof (buf), 0, menu, NONULL(ComposeFormat)); + compose_status_line (buf, sizeof (buf), 0, menu, NONULL(ComposeFormat)); CLEARLINE (option (OPTSTATUSONTOP) ? 0 : LINES-2); SETCOLOR (MT_COLOR_STATUS); - printw ("%-*.*s", COLS, COLS, buf); + BKGDSET (MT_COLOR_STATUS); + mutt_paddstr (COLS, buf); SETCOLOR (MT_COLOR_NORMAL); + BKGDSET (MT_COLOR_NORMAL); menu->redraw &= ~REDRAW_STATUS; } } |