From: Thomas Roessler Date: Wed, 2 Dec 1998 10:04:59 +0000 (+0000) Subject: From the Compose menu, invoke attach-message. Tag a whole bunch of X-Git-Tag: mutt-0-94-18-rel~6 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1e63f28ea58289c110df662ab484cf0d154b94af;p=mutt From the Compose menu, invoke attach-message. Tag a whole bunch of messages. Say, for example, 100. When you exit the folder, the Compose menu's status line has disappeared. Fix from Vikas. --- diff --git a/compose.c b/compose.c index b2e724df..6f90f619 100644 --- a/compose.c +++ b/compose.c @@ -400,6 +400,7 @@ int mutt_compose_menu (HEADER *msg, /* structure for new message */ switch (op = mutt_menuLoop (menu)) { case OP_REDRAW: + menu_redraw_status (menu); draw_envelope (msg, fcc); menu->offset = HDR_ATTACH; menu->pagelen = LINES - HDR_ATTACH - 2; diff --git a/menu.c b/menu.c index 17981351..60300706 100644 --- a/menu.c +++ b/menu.c @@ -125,6 +125,17 @@ void menu_redraw_full (MUTTMENU *menu) menu->redraw = REDRAW_INDEX | REDRAW_STATUS; } +void menu_redraw_status (MUTTMENU *menu) +{ + char buf[STRING]; + + snprintf (buf, sizeof (buf), M_MODEFMT, menu->title); + SETCOLOR (MT_COLOR_STATUS); + mvprintw (option (OPTSTATUSONTOP) ? 0 : LINES - 2, 0, "%-*.*s", COLS, COLS, buf); + SETCOLOR (MT_COLOR_NORMAL); + menu->redraw &= ~REDRAW_STATUS; +} + void menu_redraw_index (MUTTMENU *menu) { char buf[STRING]; @@ -631,7 +642,6 @@ static int menu_search (MUTTMENU *menu, int op) int mutt_menuLoop (MUTTMENU *menu) { int i = OP_NULL; - char buf[STRING]; FOREVER { @@ -648,14 +658,7 @@ int mutt_menuLoop (MUTTMENU *menu) menu_check_recenter (menu); if (menu->redraw & REDRAW_STATUS) - { - snprintf (buf, sizeof (buf), M_MODEFMT, menu->title); - SETCOLOR (MT_COLOR_STATUS); - mvprintw (option (OPTSTATUSONTOP) ? 0 : LINES - 2, 0, "%-*.*s", COLS, COLS, buf); - SETCOLOR (MT_COLOR_NORMAL); - menu->redraw &= ~REDRAW_STATUS; - } - + menu_redraw_status (menu); if (menu->redraw & REDRAW_INDEX) menu_redraw_index (menu); else if (menu->redraw & (REDRAW_MOTION | REDRAW_MOTION_RESYNCH)) diff --git a/mutt_menu.h b/mutt_menu.h index 0a480aef..8555e72f 100644 --- a/mutt_menu.h +++ b/mutt_menu.h @@ -72,6 +72,7 @@ typedef struct menu_t void menu_jump (MUTTMENU *); void menu_redraw_full (MUTTMENU *); void menu_redraw_index (MUTTMENU *); +void menu_redraw_status (MUTTMENU *); void menu_redraw_motion (MUTTMENU *); void menu_redraw_current (MUTTMENU *); void menu_first_entry (MUTTMENU *);