From f79e58edcea0803ceb1a2d730eacc67419545289 Mon Sep 17 00:00:00 2001 From: Araq Date: Thu, 16 Jul 2015 15:26:04 +0200 Subject: [PATCH] don't reset the terminal when --stdout is active --- compiler/msgs.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/msgs.nim b/compiler/msgs.nim index e6bc45da63..bb247ea54d 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()