From: nion Date: Wed, 16 Mar 2005 14:12:58 +0000 (+0000) Subject: Nico Golde: X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=commitdiff_plain;h=f8867ec009c96710193ccc3832d8bb346192b1b0 Nico Golde: - fixed behaviour of statusline if the sidebar is visible git-svn-id: svn://svn.berlios.de/mutt-ng/trunk@185 e385b8ad-14ed-0310-8656-cc95a2468c6d --- diff --git a/pager.c b/pager.c index 17a08b9..c2f784b 100644 --- a/pager.c +++ b/pager.c @@ -1754,8 +1754,10 @@ mutt_pager (const char *banner, const char *fname, int flags, pager_t *extra) _mutt_make_string (buffer, l1 < l2 ? l1 : l2, NONULL (PagerFmt), Context, extra->bdy->hdr, M_FORMAT_MAKEPRINT); } - mutt_paddstr (COLS-10-SidebarWidth, IsHeader (extra) || IsMsgAttach (extra) ? - buffer : banner); + move (indexoffset + (option (OPTSTATUSONTOP) ? 0 : (indexlen - 1)),option(OPTSTATUSONTOP)?0:SidebarWidth); + mutt_paddstr (COLS-10, IsHeader (extra) || IsMsgAttach (extra) ? + buffer : banner); + addstr (" -- ("); if (last_pos < sb.st_size - 1) printw ("%d%%)", (int) (100 * last_offset / sb.st_size));