1
0
mirror of https://github.com/alecthomas/chroma.git synced 2025-04-11 11:32:05 +02:00

Merge pull request #20 from sago35/fix-windows-color

Fix colors on windows
This commit is contained in:
Alec Thomas 2017-09-22 21:12:12 +10:00 committed by GitHub
commit e5fd873611

View File

@ -152,12 +152,12 @@ command, for Go.
if len(*filesArgs) == 0 {
contents, err := ioutil.ReadAll(os.Stdin)
kingpin.FatalIfError(err, "")
format(os.Stdout, style, lex("", string(contents)))
format(w, style, lex("", string(contents)))
} else {
for _, filename := range *filesArgs {
contents, err := ioutil.ReadFile(filename)
kingpin.FatalIfError(err, "")
format(os.Stdout, style, lex(filename, string(contents)))
format(w, style, lex(filename, string(contents)))
}
}
}