don't reset the terminal when --stdout is active

This commit is contained in:
Araq
2015-07-16 15:26:04 +02:00
parent 728fc441ef
commit f79e58edce

View File

@@ -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()