]> granicus.if.org Git - neomutt/commitdiff
When using colors, the status line of the index is displayed in a
authorVincent Lefevre <vincent@vinc17.org>
Sat, 30 Jul 2005 04:13:07 +0000 (04:13 +0000)
committerVincent Lefevre <vincent@vinc17.org>
Sat, 30 Jul 2005 04:13:07 +0000 (04:13 +0000)
>bright color, even when the prefix "bright" is *not* given in the
foreground color. The problem occurs when I have the following additional
line:
  color normal brightwhite black
The problem is that BKGDSET's are missing.

curs_main.c
pager.c

index 1d96c891552bc22648b62bf69641a09bd86d653f..c8c4225dcc4e638ebc0d6c4fa0ffa84df0f54a1f 100644 (file)
@@ -563,8 +563,10 @@ int mutt_index_menu (void)
        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;
       }
 
diff --git a/pager.c b/pager.c
index 6796166f3a8d04dca2d3966cb2ebdc81afc7649b..c96178b5f7f2fa2e3994721888991d65e441769e 100644 (file)
--- a/pager.c
+++ b/pager.c
@@ -1744,8 +1744,10 @@ mutt_pager (const char *banner, const char *fname, int flags, pager_t *extra)
  
       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;