gofmt -s -w .

This commit is contained in:
astaxie
2016-08-17 22:49:30 +08:00
parent bed1d9bd27
commit 68311b286e
6 changed files with 11 additions and 13 deletions

View File

@@ -25,7 +25,7 @@ import (
)
type (
csiState int
csiState int
parseResult int
)
@@ -294,7 +294,7 @@ func changeColor(param []byte) parseResult {
case ansiBlinkOff:
winAttr.backgroundIntensity = 0
default:
// unknown code
// unknown code
}
case c.drawType == foreground:
winAttr.foregroundColor = c.code
@@ -420,9 +420,9 @@ func (cw *ansiColorWriter) Write(p []byte) (int, error) {
}
if cw.mode != DiscardNonColorEscSeq || cw.state == outsideCsiCode {
nw, err = cw.w.Write(p[first:len(p)])
nw, err = cw.w.Write(p[first:])
r += nw
}
return r, err
}
}