Skip to content

Commit

Permalink
fix(export): handle 16777217th color
Browse files Browse the repository at this point in the history
  • Loading branch information
MrMarble committed May 5, 2022
1 parent 392bf79 commit 1f4eca4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/color/color.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
//go:generate go run colorsgen.go

func GetColor(c vt10x.Color) string {
if c == vt10x.DefaultFG {
if c >= 1<<24 {
return colors[int(vt10x.LightGrey)]
}

Expand Down

0 comments on commit 1f4eca4

Please sign in to comment.