summaryrefslogtreecommitdiffstats
path: root/color.c
diff options
context:
space:
mode:
authorThomas Roessler <roessler@does-not-exist.org>1999-11-15 12:02:31 +0000
committerThomas Roessler <roessler@does-not-exist.org>1999-11-15 12:02:31 +0000
commit847c99626cbda60362e9b53431d9a1482efb199a (patch)
tree6503a054b6350cd35e77c6d1f78b5f975f417a62 /color.c
parentd413403a17f0117ad48c8780ae7ca86d46280a74 (diff)
Small color fix from T. E. Dickey.
Diffstat (limited to 'color.c')
-rw-r--r--color.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/color.c b/color.c
index 61a4f031..02ccece0 100644
--- 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);