From 7eae3e54641280126b80a0eddc9066e17bb89846 Mon Sep 17 00:00:00 2001 From: Elia el Lazkani Date: Fri, 6 Mar 2020 20:52:48 +0100 Subject: [PATCH] [BUGFIX] Windows terminals that don't set TERM now properly set --no-colors by default --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index d2857b0..e75b980 100644 --- a/main.go +++ b/main.go @@ -278,7 +278,7 @@ func flagParser() { // Windows terminal does not have color encoding // so let's make sure windows users are happy - if os.Getenv("TERM") == "" && !*png && *format != "" && *freeStyle != "" { + if os.Getenv("TERM") == "" && !*png && *format == "" && *freeStyle == "" { *switches[11] = true } }