summaryrefslogtreecommitdiffstats
path: root/curs_main.c
diff options
context:
space:
mode:
authorKevin McCarthy <kevin@8t8.us>2020-02-26 15:07:00 -0800
committerKevin McCarthy <kevin@8t8.us>2020-02-29 20:33:30 -0800
commit107f4334980e47ab04c3e0c453c20a9d120a5a3c (patch)
treea8e971b5d5b4c6e8ab00e9d9fd9c8f080c1371cf /curs_main.c
parentd802c70086eb1341e4cfa89f6404f2788bca42da (diff)
Add background flags to all other operations.
- index and pager send operations. - query menu and resending. - recvattach operations. I initially thought there were complications, but the attachment menu decouples everything from the ATTACH_CONTEXT and doesn't free things before they are used.
Diffstat (limited to 'curs_main.c')
-rw-r--r--curs_main.c15
1 files changed, 8 insertions, 7 deletions
diff --git a/curs_main.c b/curs_main.c
index 32a69f60..0527414e 100644
--- a/curs_main.c
+++ b/curs_main.c
@@ -2107,7 +2107,8 @@ int mutt_index_menu (void)
CHECK_ATTACH;
CHECK_MSGCOUNT;
CHECK_VISIBLE;
- mutt_send_message (SENDTOSENDER, NULL, NULL, Context, tag ? NULL : CURHDR);
+ mutt_send_message (SENDTOSENDER | SENDBACKGROUNDEDIT,
+ NULL, NULL, Context, tag ? NULL : CURHDR);
menu->redraw = REDRAW_FULL;
break;
@@ -2226,7 +2227,8 @@ int mutt_index_menu (void)
CHECK_ATTACH;
if (option (OPTPGPAUTODEC) && (tag || !(CURHDR->security & PGP_TRADITIONAL_CHECKED)))
mutt_check_traditional_pgp (tag ? NULL : CURHDR, &menu->redraw);
- mutt_send_message (SENDFORWARD, NULL, NULL, Context, tag ? NULL : CURHDR);
+ mutt_send_message (SENDFORWARD | SENDBACKGROUNDEDIT,
+ NULL, NULL, Context, tag ? NULL : CURHDR);
menu->redraw = REDRAW_FULL;
break;
@@ -2264,9 +2266,7 @@ int mutt_index_menu (void)
case OP_MAIL:
CHECK_ATTACH;
- if (mutt_send_message (SENDBACKGROUNDEDIT, NULL, NULL,
- Context, NULL) == 2)
- mutt_message _("Editing backgrounded.");
+ mutt_send_message (SENDBACKGROUNDEDIT, NULL, NULL, Context, NULL);
menu->redraw = REDRAW_FULL;
break;
@@ -2410,7 +2410,8 @@ int mutt_index_menu (void)
case OP_RECALL_MESSAGE:
CHECK_ATTACH;
- mutt_send_message (SENDPOSTPONED, NULL, NULL, Context, NULL);
+ mutt_send_message (SENDPOSTPONED | SENDBACKGROUNDEDIT,
+ NULL, NULL, Context, NULL);
menu->redraw = REDRAW_FULL;
break;
@@ -2445,7 +2446,7 @@ int mutt_index_menu (void)
CHECK_MSGCOUNT;
CHECK_VISIBLE;
- replyflags = SENDREPLY |
+ replyflags = SENDREPLY | SENDBACKGROUNDEDIT |
(op == OP_GROUP_REPLY ? SENDGROUPREPLY : 0) |
(op == OP_GROUP_CHAT_REPLY ? SENDGROUPCHATREPLY : 0) |
(op == OP_LIST_REPLY ? SENDLISTREPLY : 0);