X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=recvattach.c;h=91d6434e314eebe26c7ba90e436ada6e38125a36;hp=de7cee0f3e99e2c767cf8eaea2da3d47ddb0f448;hb=6c248aa3490f9c948da1bcfe49bdf8d7ba25e372;hpb=dd5354f76c36f71044f6ddeee61241691c7195ff diff --git a/recvattach.c b/recvattach.c index de7cee0..91d6434 100644 --- a/recvattach.c +++ b/recvattach.c @@ -13,7 +13,7 @@ #include #include -#include +#include #include #include #include @@ -25,8 +25,6 @@ #include "attach.h" #include "copy.h" -#define SW (option(OPTMBOXPANE)?SidebarWidth:0) - void mutt_update_tree (ATTACHPTR ** idx, short idxlen) { char buf[STRING]; @@ -306,7 +304,7 @@ mutt_attach_fmt(char *dest, ssize_t destlen, char op, const char *src, static void attach_entry(char *b, ssize_t blen, MUTTMENU * menu, int num) { - m_strformat(b, blen, COLS - SW, AttachFormat, mutt_attach_fmt, + m_strformat(b, blen, getmaxx(main_w), AttachFormat, mutt_attach_fmt, ((ATTACHPTR **) menu->data)[num], 0); } @@ -486,7 +484,7 @@ mutt_query_pipe_attachment(char *command, FILE * fp, BODY * body, int afilter) _("WARNING! You are about to overwrite %s, continue?"), body->filename); if (mutt_yesorno (warning, M_NO) != M_YES) { - CLEARLINE (LINES - 1); + CLEARLINE(main_w, LINES - 1); return; } tempfd = m_tempfd(tfile, sizeof(tfile), NONULL(mod_core.tmpdir), NULL);