ports/mail/mu/patches/patch-mu_mu-options_cc

16 lines
380 B
Text
Raw Normal View History

2023-09-08 05:21:37 +00:00
:: doesn't work on macro expansion
Index: mu/mu-options.cc
--- mu/mu-options.cc.orig
+++ mu/mu-options.cc
@@ -630,8 +630,8 @@ bool
Options::default_no_color()
{
static const auto no_color =
- !::isatty(::fileno(stdout)) ||
- !::isatty(::fileno(stderr)) ||
+ !::isatty(fileno(stdout)) ||
+ !::isatty(fileno(stderr)) ||
::getenv("NO_COLOR") != NULL;
return no_color;