From: Brendan Cully Date: Tue, 2 Aug 2005 01:13:25 +0000 (+0000) Subject: Don't unlink attachments that you've decided not to send. (closes #1328) X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=899e68c2dfc5f32fc79aa205e85fad2d5a2ba828;p=neomutt Don't unlink attachments that you've decided not to send. (closes #1328) --- diff --git a/compose.c b/compose.c index 6f34bf683..eab1b26b1 100644 --- a/compose.c +++ b/compose.c @@ -814,6 +814,7 @@ int mutt_compose_menu (HEADER *msg, /* structure for new message */ case OP_DELETE: CHECK_COUNT; + idx[menu->current]->content->unlink = 0; if (delete_attachment (menu, &idxlen, menu->current) == -1) break; mutt_update_tree (idx, idxlen);