diff options
-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); |