X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=attach.c;h=c32eb79e6fde63d978dbe808cc959b677d6e9792;hp=33eacb12056d0abf240f6a32a9a807289d67c050;hb=f0d5ecf432102dc3e6430ceb2a6c692ee856f4d4;hpb=ba5e3af4ea19e1d20c80941c077039871ec84258 diff --git a/attach.c b/attach.c index 33eacb1..c32eb79 100644 --- a/attach.c +++ b/attach.c @@ -13,6 +13,9 @@ #endif #include "mutt.h" +#include "ascii.h" +#include "handler.h" +#include "recvattach.h" #include "mutt_menu.h" #include "mutt_curses.h" #include "keymap.h" @@ -245,7 +248,7 @@ int mutt_edit_attachment (BODY * a) } else if (a->type == TYPETEXT) { /* On text, default to editor */ - mutt_edit_file (NONULL (Editor), newfile); + mutt_edit_file (NONULL (Editor), a->filename); } else { rfc1524_free_entry (&entry);