From 3a7ba7e7e27b20c8b0ece7bc025be2189a9e494d Mon Sep 17 00:00:00 2001 From: Pietro Cerutti Date: Wed, 24 Apr 2019 15:00:54 +0000 Subject: [PATCH] Fix getting back to index after saving an edited message Fixes #1674 --- editmsg.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/editmsg.c b/editmsg.c index 9a4120b14..b6bad5c4a 100644 --- a/editmsg.c +++ b/editmsg.c @@ -176,7 +176,7 @@ static int ev_message(enum EvMessage action, struct Mailbox *m, struct Email *e) goto bail; } - struct Context *ctx_app = mx_mbox_open(m, MUTT_OPEN_NO_FLAGS); + struct Context *ctx_app = mx_mbox_open(m, MUTT_APPEND | MUTT_QUIET); if (!ctx_app) { rc = -1; @@ -185,9 +185,6 @@ static int ev_message(enum EvMessage action, struct Mailbox *m, struct Email *e) goto bail; } - old_append = m->append; - m->append = true; - MsgOpenFlags of = MUTT_MSG_NO_FLAGS; CopyHeaderFlags cf = (((ctx_app->mailbox->magic == MUTT_MBOX) || (ctx_app->mailbox->magic == MUTT_MMDF)) ? -- 2.40.0