]> granicus.if.org Git - neomutt/commitdiff
Use mutt_paddstr() to print compose menu's status line rather than printw().
authorRocco Rutte <pdmef@gmx.net>
Wed, 19 Sep 2007 09:53:03 +0000 (11:53 +0200)
committerRocco Rutte <pdmef@gmx.net>
Wed, 19 Sep 2007 09:53:03 +0000 (11:53 +0200)
All other menus use mutt_paddstr(): printw() prints only N bytes, not N columns.

compose.c

index c8600b5c0ca28a2296a00e1a7531f37f502ea4ba..3103843afcccb4028a6343e4032e5cddf2df3710 100644 (file)
--- 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;
     }
   }