X-Git-Url: http://git.madism.org/?a=blobdiff_plain;ds=sidebyside;f=compose.c;h=cb245dc1aea7b0768da899520fcf7e1c34b9c572;hb=1c62190597f45fd606cf680df3f6a099b9f7ec18;hp=02d4aae2ef2dfbf7ad3dea7464dad7ebcbbd1131;hpb=cfd5f411041c7ef44087b032751792fadc74586d;p=apps%2Fmadmutt.git diff --git a/compose.c b/compose.c index 02d4aae..cb245dc 100644 --- a/compose.c +++ b/compose.c @@ -846,7 +846,7 @@ int mutt_compose_menu (HEADER * msg, /* structure for new message */ int itype; FILE *fp; - CLEARLINE(main_w, LINES - 1); + CLEARLINE(stdscr, LINES - 1); fname[0] = 0; if (mutt_get_field (_("New file: "), fname, sizeof (fname), M_FILE) != 0 || !fname[0]) @@ -1007,7 +1007,7 @@ int mutt_compose_menu (HEADER * msg, /* structure for new message */ 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."); @@ -1048,8 +1048,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; }