summaryrefslogtreecommitdiffstats
path: root/curs_main.c
diff options
context:
space:
mode:
authorKevin McCarthy <kevin@8t8.us>2020-02-19 16:34:05 -0800
committerKevin McCarthy <kevin@8t8.us>2020-02-29 20:30:13 -0800
commit6fe9b1d5c526b0497b17ef340d058fb1537e7da0 (patch)
tree92cbb386c7829489e435fb8f9071ea31d2af3abe /curs_main.c
parent331772558d86aaf342895e2cff1c029b198483fa (diff)
Add background compose menu and $background_format config var.
List the backgrounded sessions. Allow the user to resume one, or exit the menu. Bind to 'B' by default in the index and pager menus. Remove the "<mail>" function autoresuming functionality, instead invoke the menu to resume backgrounded sessions.
Diffstat (limited to 'curs_main.c')
-rw-r--r--curs_main.c25
1 files changed, 7 insertions, 18 deletions
diff --git a/curs_main.c b/curs_main.c
index e3e584c8..e6972618 100644
--- a/curs_main.c
+++ b/curs_main.c
@@ -2237,27 +2237,16 @@ int mutt_index_menu (void)
}
break;
+ case OP_BACKGROUND_COMPOSE_MENU:
+ mutt_background_compose_menu ();
+ break;
+
case OP_MAIL:
CHECK_ATTACH;
- if (BackgroundProcess)
- {
- SEND_CONTEXT *sctx = BackgroundProcess;
- BackgroundProcess = NULL;
- /* this is a quick hack for now */
- mutt_message _("Waiting for editor to exit");
- waitpid (sctx->background_pid, NULL, 0);
- mutt_clear_error ();
-
- if (mutt_send_message_resume (sctx) == 2)
- mutt_message _("Editing backgrounded. Hit m to restart");
- }
- else
- {
- if (mutt_send_message (SENDBACKGROUNDEDIT, NULL, NULL,
- Context, NULL) == 2)
- mutt_message _("Editing backgrounded. Hit m to restart");
- }
+ if (mutt_send_message (SENDBACKGROUNDEDIT, NULL, NULL,
+ Context, NULL) == 2)
+ mutt_message _("Editing backgrounded.");
menu->redraw = REDRAW_FULL;
break;