summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2015-07-16 15:26:04 +0200
committerAraq <rumpf_a@web.de>2015-07-16 15:26:04 +0200
commitf79e58edcea0803ceb1a2d730eacc67419545289 (patch)
tree4edc73a732e628870cb036e7c59a1e2c4df775df
parent728fc441ef7d1e81b7f2cc5cb2df04a7b7ced179 (diff)
downloadNim-f79e58edcea0803ceb1a2d730eacc67419545289.tar.gz
don't reset the terminal when --stdout is active
-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()