summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--compiler/msgs.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/msgs.nim b/compiler/msgs.nim
index e6bc45da6..bb247ea54 100644
--- a/compiler/msgs.nim
+++ b/compiler/msgs.nim
@@ -866,7 +866,7 @@ proc rawMessage*(msg: TMsgKind, arg: string) =
   rawMessage(msg, [arg])
 
 proc resetAttributes* =
-  if optUseColors in gGlobalOptions:
+  if {optUseColors, optStdout} * gGlobalOptions == {optUseColors}:
     terminal.resetAttributes()
     stdout.flushFile()