X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=compose.c;h=5e47cbe89c8cd7b519d60a7528eb959c3d11d0a7;hp=d36008bbb38cfcb9b28ec83c8278ee089ad4f496;hb=88d239144bf6f50ca1eda6db7742281f0ad0f97f;hpb=690944eebbe058753a56dd10a455943507dc44e7 diff --git a/compose.c b/compose.c index d36008b..5e47cbe 100644 --- a/compose.c +++ b/compose.c @@ -17,7 +17,6 @@ #include #include -#include #include #include @@ -245,7 +244,7 @@ static int delete_attachment (MUTTMENU * menu, short *idxlen, int x) idx[x] = idx[x + 1]; menu->max = --(*idxlen); - return (0); + return 0; } static void update_idx (MUTTMENU * menu, ATTACHPTR ** idx, short idxlen) @@ -344,12 +343,12 @@ static const char *compose_format_str (char *buf, ssize_t buflen, char op, 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; @@ -359,7 +358,7 @@ static const char *compose_format_str (char *buf, ssize_t buflen, char op, 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, @@ -846,7 +845,6 @@ int mutt_compose_menu (HEADER * msg, /* structure for new message */ 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]) @@ -1048,8 +1046,7 @@ int mutt_compose_menu (HEADER * msg, /* structure for new message */ 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; } @@ -1069,5 +1066,5 @@ int mutt_compose_menu (HEADER * msg, /* structure for new message */ p_delete(&idx); - return (r); + return r; }