int bodylen = LINES - 2 - bodyoffset; /* length of displayable area */
MUTTMENU *pager_index = NULL; /* the Pager Index (PI) */
- int indexoffset = 0; /* offset for the PI */
- int indexlen = PagerIndexLines; /* indexlen not always == PIL */
+ int indexlen = PagerIndexLines; /* indexlen not always == PIL */
int indicator = indexlen / 3; /* the indicator line of the PI */
int old_PagerIndexLines; /* some people want to resize it
* while inside the pager... */
indicator = indexlen / 3;
- indexoffset = 0;
statusoffset = IsHeader (extra) ? indexlen : 0;
- bodyoffset = statusoffset + 1;
- helpoffset = LINES - 2;
- bodylen = helpoffset - bodyoffset;
+ bodyoffset = statusoffset + 1;
+ helpoffset = LINES - 2;
+ bodylen = helpoffset - bodyoffset;
SETCOLOR(main_w, MT_COLOR_STATUS);
wmove(main_w, helpoffset, 0);
}
SETCOLOR(main_w, MT_COLOR_NORMAL);
- pager_index->offset = indexoffset + 1;
-
+ pager_index->offset = 1;
pager_index->pagelen = indexlen - 1;
/* some fudge to work out where abouts the indicator should go */
sidebar_draw ();
/* print out the pager_index status bar */
menu_status_line (buffer, sizeof (buffer), pager_index, NONULL (Status));
- wmove(main_w, indexoffset + 0, 0);
+ wmove(main_w, 0, 0);
SETCOLOR(main_w, MT_COLOR_STATUS);
BKGDSET(main_w, MT_COLOR_STATUS);
mutt_paddstr(main_w, getmaxx(main_w), buffer);