if (DisplayFilter && *DisplayFilter) {
fpfilterout = fpout;
fpout = NULL;
- /* mutt_endwin (NULL); */
filterpid = mutt_create_filter_fd (DisplayFilter, &fpout, NULL, NULL,
-1, fileno (fpfilterout), -1);
if (filterpid < 0) {
buf);
#define extra_space (15 + 7 + 2)
- if (m_strwidth(prompt) > COLS - extra_space) {
- mutt_format_string(prompt, sizeof(prompt), 0, COLS - extra_space, 0, 0,
- prompt, sizeof(prompt), 0);
+ if (m_strwidth(prompt) > getmaxx(main_w) - extra_space) {
+ mutt_format_string(prompt, sizeof(prompt), 0,
+ getmaxx(main_w) - extra_space, 0, 0, prompt,
+ sizeof(prompt), 0);
m_strcat(prompt, sizeof(prompt), "...?");
} else {
m_strcat(prompt, sizeof(prompt), "?");
if (query_quadoption (OPT_BOUNCE, prompt) != M_YES) {
address_list_wipe(&adr);
- CLEARLINE (LINES - 1);
+ CLEARLINE(main_w, LINES - 1);
mutt_message (h ? _("Message not bounced.") : _("Messages not bounced."));
return;
}
- CLEARLINE (LINES - 1);
+ CLEARLINE(main_w, LINES - 1);
rc = mutt_bounce_message (NULL, h, adr);
address_list_wipe(&adr);
pid_t thepid;
FILE *fpout;
-/* mutt_endwin (NULL);
-
- is this really needed here ?
- it makes the screen flicker on pgp and s/mime messages,
- before asking for a passphrase...
- Oliver Ehli */
if (h) {
-
mutt_message_hook (Context, h, M_MESSAGEHOOK);
if (decode) {
pipe_msg (h, fpout, decode, print);
m_fclose(&fpout);
rc = mutt_wait_filter (thepid);
- }
- else { /* handle tagged messages */
-
+ } else { /* handle tagged messages */
if (decode) {
for (i = 0; i < Context->vcount; i++)
if (Context->hdrs[Context->v2r[i]]->tagged) {
rc = 1;
}
}
- }
- else {
+ } else {
mutt_endwin (NULL);
if ((thepid = mutt_create_filter (cmd, &fpout, NULL, NULL)) < 0) {
mutt_perror (_("Can't create filter process"));
if (!buf[0])
m_strcpy(buf, sizeof(buf), mod_core.shell);
if (buf[0]) {
- CLEARLINE (LINES - 1);
+ CLEARLINE(main_w, LINES - 1);
mutt_endwin (NULL);
fflush (stdout);
if (mutt_system (buf) != 0 || option (OPTWAITKEY))