From 0c95c3b9e4499c633039210048ce6ce08d56965b Mon Sep 17 00:00:00 2001 From: Rocco Rutte Date: Wed, 19 Sep 2007 11:53:03 +0200 Subject: [PATCH] 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. --- compose.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/compose.c b/compose.c index c8600b5c0..3103843af 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; } } -- 2.50.1