summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c
index 8ad84f45..a768d367 100644
--- a/src/main.c
+++ b/src/main.c
@@ -2132,7 +2132,7 @@ main (int argc, char **argv)
}
if (color_option == 2)
- color_option = should_colorize (STDOUT_FILENO);
+ color_option = isatty (STDOUT_FILENO) && should_colorize ();
init_colorize ();
/* POSIX.2 says that -q overrides -l, which in turn overrides the