summaryrefslogtreecommitdiffstats
path: root/compose.c
diff options
context:
space:
mode:
authorRocco Rutte <pdmef@gmx.net>2007-09-19 11:53:03 +0200
committerRocco Rutte <pdmef@gmx.net>2007-09-19 11:53:03 +0200
commitd7ae4143291246a8d73868e9ad0aa07484fba234 (patch)
tree03f24f94c9c6c0093bfc7d7a9bcf1127f9d13baa /compose.c
parent4f178990bee66d39f58c41a25d5d46ae81498900 (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.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/compose.c b/compose.c
index c8600b5c..3103843a 100644
--- a/compose.c
+++ b/compose.c
@@ -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;
}
}