summaryrefslogtreecommitdiffstats
path: root/compose.c
diff options
context:
space:
mode:
authorThomas Roessler <roessler@does-not-exist.org>1998-10-05 18:24:42 +0000
committerThomas Roessler <roessler@does-not-exist.org>1998-10-05 18:24:42 +0000
commitf9fb45338e02ec7171f58b91ba89554f3ea57098 (patch)
treedeac7277476c9626dca43c485d6458574a2b674e /compose.c
parentee4d0e3176cd0cb6778ce9fbd4ce2b7d8123fe2e (diff)
Vikas' macro_function patch.
Diffstat (limited to 'compose.c')
-rw-r--r--compose.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/compose.c b/compose.c
index 21a829c2..40bb4927 100644
--- a/compose.c
+++ b/compose.c
@@ -435,11 +435,12 @@ int mutt_compose_menu (HEADER *msg, /* structure for new message */
/* Sort, SortAux could be changed in mutt_index_menu() */
int oldSort = Sort, oldSortAux = SortAux;
struct stat st;
+ int savedmenu = CurrentMenu;
idx = mutt_gen_attach_list (msg->content, idx, &idxlen, &idxmax, 0, 1);
menu = mutt_new_menu ();
- menu->menu = MENU_COMPOSE;
+ menu->menu = CurrentMenu = MENU_COMPOSE;
menu->offset = HDR_ATTACH;
menu->max = idxlen;
menu->make_entry = snd_entry;
@@ -1105,6 +1106,7 @@ int mutt_compose_menu (HEADER *msg, /* structure for new message */
}
mutt_menuDestroy (&menu);
+ CurrentMenu = savedmenu;
if (idxlen)
{