summaryrefslogtreecommitdiffstats
path: root/headers.c
diff options
context:
space:
mode:
authorKevin McCarthy <kevin@8t8.us>2020-02-16 12:30:54 -0800
committerKevin McCarthy <kevin@8t8.us>2020-02-29 19:15:09 -0800
commit0d66dd5fcabdbdea8dbe20c1b3078b040b11d832 (patch)
treed7a8fcb8e0f9c590d0b0aeddc94e2f4fe830eb3b /headers.c
parent4af5c934cdcff0366580f96e7bc7ac1f41721a97 (diff)
Add background edit landing page.
The landing page waits for the $editor process to exit, or until the user presses <exit>, "q" by default. If they press exit they are returned to the index. If the $editor exits first, they are returned directly to the compose process.
Diffstat (limited to 'headers.c')
-rw-r--r--headers.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/headers.c b/headers.c
index 3a4879d0..a8725c0f 100644
--- a/headers.c
+++ b/headers.c
@@ -80,7 +80,7 @@ int mutt_edit_headers (const char *editor,
if (flags == MUTT_EDIT_HEADERS_BACKGROUND)
{
- if (mutt_background_edit_file (sctx, editor, mutt_b2s (sctx->tempfile)) == 0)
+ if (mutt_background_edit_file (sctx, editor, mutt_b2s (sctx->tempfile)) == 2)
{
sctx->state = SEND_STATE_FIRST_EDIT_HEADERS;
return 2;