<<< Date Index >>>     <<< Thread Index >>>

Re: Color brightness of the pager and index status lines



On 2005-07-29 09:53:01 +0200, Vincent Lefevre wrote:
> I've done more tests. The problem occurs when I have the
> following additional line:
> 
> color normal brightwhite black

The problem is that BKGDSET's are missing. The attached patch
seems to fix the problem.

-- 
Vincent Lefèvre <vincent@xxxxxxxxxx> - Web: <http://www.vinc17.org/>
100% accessible validated (X)HTML - Blog: <http://www.vinc17.org/blog/>
Work: CR INRIA - computer arithmetic / SPACES project at LORIA
Index: curs_main.c
===================================================================
RCS file: /home/roessler/cvs/mutt/curs_main.c,v
retrieving revision 3.24
diff -d -u -r3.24 curs_main.c
--- curs_main.c 24 Jul 2005 16:51:38 -0000      3.24
+++ curs_main.c 29 Jul 2005 08:58:13 -0000
@@ -563,8 +563,10 @@
        menu_status_line (buf, sizeof (buf), menu, NONULL (Status));
        CLEARLINE (option (OPTSTATUSONTOP) ? 0 : LINES-2);
        SETCOLOR (MT_COLOR_STATUS);
+       BKGDSET (MT_COLOR_STATUS);
        mutt_paddstr (COLS, buf);
        SETCOLOR (MT_COLOR_NORMAL);
+       BKGDSET (MT_COLOR_NORMAL);
        menu->redraw &= ~REDRAW_STATUS;
       }
 
Index: pager.c
===================================================================
RCS file: /home/roessler/cvs/mutt/pager.c,v
retrieving revision 3.19
diff -d -u -r3.19 pager.c
--- pager.c     24 Jul 2005 16:51:38 -0000      3.19
+++ pager.c     29 Jul 2005 08:58:13 -0000
@@ -1744,8 +1744,10 @@
  
       move (indexoffset + (option (OPTSTATUSONTOP) ? 0 : (indexlen - 1)), 0);
       SETCOLOR (MT_COLOR_STATUS);
+      BKGDSET (MT_COLOR_STATUS);
       mutt_paddstr (COLS, buffer);
       SETCOLOR (MT_COLOR_NORMAL);
+      BKGDSET (MT_COLOR_NORMAL);
     }
 
     redraw = 0;