Andreas Krennmair:
authorak1 <ak1@e385b8ad-14ed-0310-8656-cc95a2468c6d>
Thu, 10 Mar 2005 21:17:37 +0000 (21:17 +0000)
committerak1 <ak1@e385b8ad-14ed-0310-8656-cc95a2468c6d>
Thu, 10 Mar 2005 21:17:37 +0000 (21:17 +0000)
the sidebar divider always needs to be drawn from line 1 on, so that it doesn't draw over the menu bar.

git-svn-id: svn://svn.berlios.de/mutt-ng/trunk@168 e385b8ad-14ed-0310-8656-cc95a2468c6d

sidebar.c

index 5692cdd..cc7350e 100644 (file)
--- a/sidebar.c
+++ b/sidebar.c
@@ -253,7 +253,7 @@ int draw_sidebar(int menu) {
   /* draw the divider */
   /* SETCOLOR(MT_COLOR_STATUS); */
     SETCOLOR(MT_COLOR_SIDEBAR);
-  for (lines = option (OPTSTATUSONTOP) ? 0 : 1; 
+  for (lines = 1;
        lines < LINES-1-(menu != MENU_PAGER || option (OPTSTATUSONTOP)); lines++ ) {
     move(lines, SidebarWidth - delim_len);
     addstr (NONULL (SidebarDelim));