Skip to content

Commit 463f547

Browse files
author
probandula
committed
bugfix
1 parent 94537c1 commit 463f547

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

color.go

+11-11
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,15 @@ var (
2424
// TrueColor lookalikes for displaying AnsiColor f.e. with the HTML parser
2525
// Colors based on http://clrs.cc/
2626
// "TrueColorForAnsiColor"
27-
var tcfac map[*AnsiColor]TrueColor = map[*AnsiColor]TrueColor{
28-
&ColorBlack: {0, 0, 0},
29-
&ColorRed: {255, 65, 54},
30-
&ColorGreen: {149, 189, 64},
31-
&ColorYellow: {255, 220, 0},
32-
&ColorBlue: {0, 116, 217},
33-
&ColorMagenta: {177, 13, 201},
34-
&ColorCyan: {105, 206, 245},
35-
&ColorWhite: {255, 255, 255},
27+
var tcfac map[AnsiColor]TrueColor = map[AnsiColor]TrueColor{
28+
ColorBlack: {0, 0, 0},
29+
ColorRed: {255, 65, 54},
30+
ColorGreen: {149, 189, 64},
31+
ColorYellow: {255, 220, 0},
32+
ColorBlue: {0, 116, 217},
33+
ColorMagenta: {177, 13, 201},
34+
ColorCyan: {105, 206, 245},
35+
ColorWhite: {255, 255, 255},
3636
}
3737

3838
// Color has a pre- and a suffix
@@ -104,7 +104,7 @@ func (ac AnsiColor) getPrefix(p Parser) string {
104104

105105
case "html":
106106
// Get the TrueColor for the AnsiColor
107-
tc := tcfac[&ac]
107+
tc := tcfac[ac]
108108
return tc.getPrefix(p)
109109
}
110110

@@ -121,7 +121,7 @@ func (ac AnsiColor) getSuffix(p Parser) string {
121121

122122
case "html":
123123
// Get the TrueColor for the AnsiColor
124-
tc := tcfac[&ac]
124+
tc := tcfac[ac]
125125
return tc.getSuffix(p)
126126
}
127127

0 commit comments

Comments
 (0)