diff options
author | Thomas Roessler <roessler@does-not-exist.org> | 1999-11-15 12:02:31 +0000 |
---|---|---|
committer | Thomas Roessler <roessler@does-not-exist.org> | 1999-11-15 12:02:31 +0000 |
commit | 847c99626cbda60362e9b53431d9a1482efb199a (patch) | |
tree | 6503a054b6350cd35e77c6d1f78b5f975f417a62 /color.c | |
parent | d413403a17f0117ad48c8780ae7ca86d46280a74 (diff) |
Small color fix from T. E. Dickey.
Diffstat (limited to 'color.c')
-rw-r--r-- | color.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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); |