X-Git-Url: http://git.madism.org/?a=blobdiff_plain;f=pager.c;h=c2f784be78be43ca9687f6db6ffa1347df0fa0d0;hb=901c0e4683d5bd43139062255bf19d90914fbf3b;hp=312e8e144a87036265da5cac8feeb0dc6213f7e9;hpb=5088ef227c399f820df601a328ec85afaa732091;p=apps%2Fmadmutt.git diff --git a/pager.c b/pager.c index 312e8e1..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)); @@ -1776,9 +1778,9 @@ mutt_pager (const char *banner, const char *fname, int flags, pager_t *extra) draw_sidebar(MENU_PAGER); /* print out the index status bar */ menu_status_line (buffer, sizeof (buffer), index, NONULL(Status)); - move (indexoffset + (option (OPTSTATUSONTOP) ? 0 : (indexlen - 1)),0); + move (indexoffset + (option (OPTSTATUSONTOP) ? 0 : (indexlen - 1)),option(OPTSTATUSONTOP)?0:SidebarWidth); SETCOLOR (MT_COLOR_STATUS); - mutt_paddstr (COLS, buffer); + mutt_paddstr (COLS-(option(OPTSTATUSONTOP)?0:SidebarWidth), buffer); SETCOLOR (MT_COLOR_NORMAL); } /* if we're not using the index, update every time */ @@ -2699,6 +2701,7 @@ CHECK_IMAP_ACL(IMAP_ACL_DELETE); case OP_BUFFY_LIST: mutt_buffy_list (); + redraw |= REDRAW_SIDEBAR; break; case OP_VIEW_ATTACHMENTS: