fix https://github.com/timotheecour/Nim/issues/152: avoid writing spurious ^[[0m to stderr when callStyledWriteLineStderr not called (#14214)
* fix https://github.com/timotheecour/Nim/issues/152 `^[[0m` is inserted in stderr for `echo code | nim c -` * resetAttributes not even needed, already handled in styledWriteLine * simplify tests in tests/trunner.nim thanks to this fix
This commit is contained in:
parent
927737975c
commit
a23302ef56
3 changed files with 5 additions and 12 deletions
|
|
@ -405,5 +405,3 @@ proc mainCommand*(graph: ModuleGraph) =
|
|||
echo " int tries: ", gCacheIntTries
|
||||
echo " efficiency: ", formatFloat(1-(gCacheMisses.float/gCacheTries.float),
|
||||
ffDecimal, 3)
|
||||
|
||||
resetAttributes(conf)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue