Nico Golde:
authornion <nion@e385b8ad-14ed-0310-8656-cc95a2468c6d>
Wed, 16 Mar 2005 14:12:58 +0000 (14:12 +0000)
committernion <nion@e385b8ad-14ed-0310-8656-cc95a2468c6d>
Wed, 16 Mar 2005 14:12:58 +0000 (14:12 +0000)
- 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

pager.c

diff --git a/pager.c b/pager.c
index 17a08b9..c2f784b 100644 (file)
--- 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));