#include <lib-mime/mime.h>
#include <lib-ui/lib-ui.h>
-#include <lib-ui/enter.h>
#include <lib-ui/menu.h>
#include <lib-mx/mx.h>
idx[x] = idx[x + 1];
menu->max = --(*idxlen);
- return (0);
+ return 0;
}
static void update_idx (MUTTMENU * menu, ATTACHPTR ** idx, short idxlen)
break;
case 'v':
- m_strcpy(buf, buflen, mutt_make_version());
+ m_strcpy(buf, buflen, madmutt_version);
break;
case 0:
*buf = 0;
- return (src);
+ return src;
default:
*buf = 0;
if (flags & M_FORMAT_OPTIONAL)
compose_status_line(buf, buflen, menu, optional ? ifstr : elstr);
- return (src);
+ return src;
}
static void compose_status_line (char *buf, ssize_t buflen, MUTTMENU * menu,
int itype;
FILE *fp;
- CLEARLINE(main_w, LINES - 1);
fname[0] = 0;
if (mutt_get_field (_("New file: "), fname, sizeof (fname), M_FILE)
!= 0 || !fname[0])
if (msg->content->next)
msg->content = mutt_make_multipart (msg->content);
- if (mutt_write_fcc (NONULL (fname), msg, NULL, 1, NULL) < 0)
+ if (mutt_write_fcc (fname, msg, NULL, 1, NULL) < 0)
msg->content = mutt_remove_multipart (msg->content);
else
mutt_message _("Message written.");
compose_status_line (buf, sizeof (buf), menu, NONULL (ComposeFormat));
CLEARLINE(main_w, 0);
SETCOLOR(main_w, MT_COLOR_STATUS);
- wmove (main_w, 0, 0);
- wprintw (main_w, "%-*.*s", getmaxx(main_w), getmaxx(main_w), buf);
+ mvwprintw (main_w, 0, 0, "%-*.*s", getmaxx(main_w), getmaxx(main_w), buf);
SETCOLOR(main_w, MT_COLOR_NORMAL);
menu->redraw &= ~REDRAW_STATUS;
}
p_delete(&idx);
- return (r);
+ return r;
}