]> granicus.if.org Git - mutt/commitdiff
Small color fix from T. E. Dickey.
authorThomas Roessler <roessler@does-not-exist.org>
Mon, 15 Nov 1999 12:02:31 +0000 (12:02 +0000)
committerThomas Roessler <roessler@does-not-exist.org>
Mon, 15 Nov 1999 12:02:31 +0000 (12:02 +0000)
color.c

diff --git a/color.c b/color.c
index 61a4f0317410ee7e4e5d359e7047366133e4da15..02ccece0980cac8999b58996ed2bbb9650fa234b 100644 (file)
--- a/color.c
+++ b/color.c
@@ -703,8 +703,10 @@ _mutt_parse_color (BUFFER *buf, BUFFER *s, BUFFER *err,
   
 #ifdef HAVE_COLOR
 # ifdef HAVE_USE_DEFAULT_COLORS
-  if (has_colors() && use_default_colors () != OK 
-      && (fg == COLOR_DEFAULT || bg == COLOR_DEFAULT))
+  if (has_colors()
+    /* delay use_default_colors() until needed, since it initializes things */
+    && (fg == COLOR_DEFAULT || bg == COLOR_DEFAULT)
+    && use_default_colors () != OK)
   {
     strfcpy (err->data, _("default colors not supported"), err->dsize);
     return (-1);