summaryrefslogtreecommitdiffstats
path: root/color.c
diff options
context:
space:
mode:
authorThomas Roessler <roessler@does-not-exist.org>1998-10-14 08:32:35 +0000
committerThomas Roessler <roessler@does-not-exist.org>1998-10-14 08:32:35 +0000
commitec6a0838f08027c7cfc4681c2ecc0748a9963c56 (patch)
tree99b8ca6d0af0242c14d963f69d88ee9668e967ea /color.c
parent592e24e900a1112349fee614b521c8b1d93bec29 (diff)
Adding some necessary ifdefs to color.c, From
Irving_Wolfe@wolfe.net.
Diffstat (limited to 'color.c')
-rw-r--r--color.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/color.c b/color.c
index 69a93776..8b57f043 100644
--- a/color.c
+++ b/color.c
@@ -754,9 +754,14 @@ int mutt_parse_mono(BUFFER *buff, BUFFER *s, unsigned long data, BUFFER *err)
{
int dry_run = 0;
+#ifdef HAVE_COLOR
if(option(OPTNOCURSES) || has_colors())
dry_run = 1;
-
+#else
+ if(option(OPTNOCURSES))
+ dry_run = 1;
+#endif
+
return _mutt_parse_color(buff, s, err, parse_attr_spec, dry_run);
}