From: Rocco Rutte Date: Wed, 19 Sep 2007 09:53:03 +0000 (+0200) Subject: Use mutt_paddstr() to print compose menu's status line rather than printw(). X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0c95c3b9e4499c633039210048ce6ce08d56965b;p=neomutt 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. --- 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; } }