From: Pietro Cerutti Date: Wed, 24 Apr 2019 15:00:54 +0000 (+0000) Subject: Fix getting back to index after saving an edited message X-Git-Tag: 2019-10-25~236 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3a7ba7e7e27b20c8b0ece7bc025be2189a9e494d;p=neomutt Fix getting back to index after saving an edited message Fixes #1674 --- 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)) ?