]> git.wh0rd.org Git - nano.git/commitdiff
Slightly better version of the fix
authorChris Allegretta <chrisa@asty.org>
Sat, 5 Jan 2002 02:03:29 +0000 (02:03 +0000)
committerChris Allegretta <chrisa@asty.org>
Sat, 5 Jan 2002 02:03:29 +0000 (02:03 +0000)
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@973 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

winio.c

diff --git a/winio.c b/winio.c
index d4c9e30234b6254fd5452947d6ee8cd87be811b9..7c56f06d3873959fef7d751fed2a40589cf0781f 100644 (file)
--- a/winio.c
+++ b/winio.c
@@ -603,7 +603,9 @@ void bottombars(shortcut s[], int slen)
 
 #ifdef ENABLE_COLOR    
     color_on(bottomwin, COLOR_BOTTOMBARS);
-    wattroff(bottomwin, A_REVERSE);
+    if (!colors[COLOR_BOTTOMBARS - FIRST_COLORNUM].set ||
+        colors[COLOR_BOTTOMBARS - FIRST_COLORNUM].fg != COLOR_BLACK)
+       wattroff(bottomwin, A_REVERSE);
 #endif
 
     /* Determine how many extra spaces are needed to fill the bottom of the screen */