#include <lib-mime/mime.h>
#include <lib-sys/unix.h>
-#include <lib-ui/curses.h>
+#include <lib-ui/lib-ui.h>
#include <lib-ui/enter.h>
#include <lib-ui/menu.h>
#include <lib-mx/mx.h>
#include "attach.h"
#include "copy.h"
-#define SW (option(OPTMBOXPANE)?SidebarWidth:0)
-
void mutt_update_tree (ATTACHPTR ** idx, short idxlen)
{
char buf[STRING];
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);
}
_("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);