X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=attach.c;h=53fac9e1ae6727d678f3f4d0d53bee4946850046;hp=1750e26f8da198e952d5fba9f7d270cd4725b76f;hb=afb1dae68aefe935a16a27dbbc11df86d2e31613;hpb=576172ff50f9dd94dd2f5cc91d247c1e50dbe7fc diff --git a/attach.c b/attach.c index 1750e26..53fac9e 100644 --- a/attach.c +++ b/attach.c @@ -533,19 +533,10 @@ int mutt_view_attachment (FILE * fp, BODY * a, int flag, HEADER * hdr, /* We only reach this point if there have been no errors */ if (use_pager) { - pager_t info; - p_clear(&info, 1); - - info.fp = fp; - info.bdy = a; - info.ctx = Context; - info.idx = idx; - info.idxlen = idxlen; - info.hdr = hdr; - - rc = mutt_do_pager(descrip, pagerfile, - M_PAGER_ATTACHMENT | (is_message ? M_PAGER_MESSAGE : 0), - &info); + pager_t info = { Context, hdr, a, fp, idx, idxlen }; + rc = mutt_pager(descrip, pagerfile, + M_PAGER_ATTACHMENT | (is_message ? M_PAGER_MESSAGE : 0), + &info); *pagerfile = '\0'; } else