summaryrefslogtreecommitdiffstats
path: root/compose.c
diff options
context:
space:
mode:
authorThomas Roessler <roessler@does-not-exist.org>1998-09-23 10:35:41 +0000
committerThomas Roessler <roessler@does-not-exist.org>1998-09-23 10:35:41 +0000
commitefe8e2dc68640724d33f452b5cc98a0887baa8b4 (patch)
tree17c7efbd1bff548851afa9392cf027fa35497827 /compose.c
parent2eabb25219b5648b2e2da27492ef79fb833dfc81 (diff)
Disable recursive invocations of the attach-message function.
Diffstat (limited to 'compose.c')
-rw-r--r--compose.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/compose.c b/compose.c
index 43f1bfaa..de23890d 100644
--- a/compose.c
+++ b/compose.c
@@ -650,7 +650,10 @@ int mutt_compose_menu (HEADER *msg, /* structure for new message */
this = Context; /* remember current folder */
Context = ctx;
- close = mutt_index_menu (1);
+ set_option(OPTATTACHMSG);
+ close = mutt_index_menu ();
+ unset_option(OPTATTACHMSG);
+
if (!Context)
{
/* go back to the folder we started from */