summaryrefslogtreecommitdiffstats
path: root/menu.c
diff options
context:
space:
mode:
authorThomas Roessler <roessler@does-not-exist.org>1998-12-02 10:04:59 +0000
committerThomas Roessler <roessler@does-not-exist.org>1998-12-02 10:04:59 +0000
commit1e63f28ea58289c110df662ab484cf0d154b94af (patch)
treec94d181bed7524a6b57718c580f71b82b66aafe2 /menu.c
parent2683080538aa6b1106fed78e72f90b1aaacb9c58 (diff)
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.
Diffstat (limited to 'menu.c')
-rw-r--r--menu.c21
1 files changed, 12 insertions, 9 deletions
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))