mirror of https://github.com/gdamore/tcell.git
fixes #75 Add goreport and fix related issues (go fmt)
This commit is contained in:
parent
f763a5b1b7
commit
9575857d57
|
@ -83,13 +83,13 @@ const (
|
|||
AttrReverse
|
||||
)
|
||||
|
||||
func fixColor(c tcell.Color) tcell.Color {
|
||||
func fixColor(c tcell.Color) tcell.Color {
|
||||
if c == tcell.ColorDefault {
|
||||
return c
|
||||
}
|
||||
switch outMode {
|
||||
case OutputNormal:
|
||||
c %= tcell.Color(16)
|
||||
c %= tcell.Color(16)
|
||||
case Output256:
|
||||
c %= tcell.Color(256)
|
||||
case Output216:
|
||||
|
|
Loading…
Reference in New Issue