X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=compose.c;h=78a55a6dc39e271bc56a16edf63d34a79c7fec3a;hp=f449b1ed5d5a7c9223dd248c08dd13785403f170;hb=4a0b020a3048f079979bea43c04f9fe388f9354d;hpb=b8c71f93b0296f815a6538182343ba67e88c0012 diff --git a/compose.c b/compose.c index f449b1e..78a55a6 100644 --- a/compose.c +++ b/compose.c @@ -23,11 +23,12 @@ #include +#include +#include +#include + #include "mutt.h" -#include "enter.h" -#include "mutt_curses.h" #include "mutt_idna.h" -#include "mutt_menu.h" #include "rfc1524.h" #include "attach.h" #include "recvattach.h" @@ -142,7 +143,7 @@ static void snd_entry (char *b, ssize_t blen, MUTTMENU * menu, int num) { M_FORMAT_STAT_FILE | M_FORMAT_ARROWCURSOR); } -#include "mutt_crypt.h" +#include static void redraw_crypt_lines (HEADER * msg) { @@ -686,8 +687,7 @@ int mutt_compose_menu (HEADER * msg, /* structure for new message */ mutt_message_hook (NULL, msg, M_SEND2HOOK); break; case OP_COMPOSE_EDIT_MESSAGE: - if (Editor && (m_strcmp("builtin", Editor) != 0) - && !option (OPTEDITHDRS)) { + if (Editor && !option (OPTEDITHDRS)) { mutt_edit_file (Editor, msg->content->filename); mutt_update_encoding (msg->content); menu->redraw = REDRAW_CURRENT | REDRAW_STATUS; @@ -696,8 +696,7 @@ int mutt_compose_menu (HEADER * msg, /* structure for new message */ } /* fall through */ case OP_COMPOSE_EDIT_HEADERS: - if (m_strcmp("builtin", Editor) != 0 && - (op == OP_COMPOSE_EDIT_HEADERS || + if ((op == OP_COMPOSE_EDIT_HEADERS || (op == OP_COMPOSE_EDIT_MESSAGE && option (OPTEDITHDRS)))) { const char *tag = NULL; const char *err = NULL; @@ -710,13 +709,6 @@ int mutt_compose_menu (HEADER * msg, /* structure for new message */ p_delete(&err); } } - else { - /* this is grouped with OP_COMPOSE_EDIT_HEADERS because the - attachment list could change if the user invokes ~v to edit - the message with headers, in which we need to execute the - code below to regenerate the index array */ - mutt_builtin_editor (msg->content->filename, msg, cur); - } mutt_update_encoding (msg->content); /* attachments may have been added */