mirror of
https://github.com/gdamore/tcell.git
synced 2025-04-24 13:48:51 +08:00
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…
x
Reference in New Issue
Block a user