X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=pager.c;h=0c9441f941a978f4fd98a56a208206e4b181a88b;hp=cbdc8fa9adc41d40650b3ddbbaff44c0c1e8b96f;hb=cef32312aa7c285411e817304de98f3873cba6be;hpb=1ee89902de184a640c171ae3285bff6882a791bd diff --git a/pager.c b/pager.c index cbdc8fa..0c9441f 100644 --- a/pager.c +++ b/pager.c @@ -17,6 +17,7 @@ #include #include #include +#include #include "mutt.h" #include "alias.h" @@ -28,7 +29,6 @@ #include "charset.h" #include "buffy.h" -#include "mx.h" #include @@ -937,11 +937,9 @@ fill_buffer (FILE * f, off_t *last_pos, off_t offset, unsigned char *buf, } #ifdef USE_NNTP -#include "mx.h" -#include "nntp.h" +#include #endif - static int format_line (struct line_t **lineInfo, int n, unsigned char *buf, int flags, ansi_attr * pa, int cnt, int *pspace, int *pvch, int *pcol, int *pspecial) @@ -1641,13 +1639,13 @@ mutt_pager (const char *banner, const char *fname, int flags, pager_t * extra) } if (redraw & REDRAW_SIDEBAR) - sidebar_draw (MENU_PAGER); + sidebar_draw (); if ((redraw & REDRAW_INDEX) && pager_index) { /* redraw the pager_index indicator, because the * flags for this message might have changed. */ menu_redraw_current (pager_index); - sidebar_draw (MENU_PAGER); + sidebar_draw (); /* print out the pager_index status bar */ menu_status_line (buffer, sizeof (buffer), pager_index, NONULL (Status)); move (indexoffset + (option (OPTSTATUSONTOP) ? 0 : (indexlen - 1)), SW); @@ -1659,7 +1657,7 @@ mutt_pager (const char *banner, const char *fname, int flags, pager_t * extra) } /* if we're not using the index, update every time */ if (index == 0) - sidebar_draw (MENU_PAGER); + sidebar_draw (); redraw = 0; @@ -2553,7 +2551,7 @@ mutt_pager (const char *banner, const char *fname, int flags, pager_t * extra) case OP_SIDEBAR_NEXT_NEW: case OP_SIDEBAR_PREV: case OP_SIDEBAR_PREV_NEW: - sidebar_scroll (ch, MENU_PAGER); + sidebar_scroll (ch); break; default: ch = -1;