We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents b5447b1 + b7d1361 commit 5839b5fCopy full SHA for 5839b5f
1 file changed
pkg/tui/styles/styles.go
@@ -344,13 +344,13 @@ func toChroma(style ansi.StylePrimitive) string {
344
if style.BackgroundColor != nil {
345
s = append(s, "bg:"+*style.BackgroundColor)
346
}
347
- if *style.Italic {
+ if style.Italic != nil && *style.Italic {
348
s = append(s, "italic")
349
350
- if *style.Bold {
+ if style.Bold != nil && *style.Bold {
351
s = append(s, "bold")
352
353
- if *style.Underline {
+ if style.Underline != nil && *style.Underline {
354
s = append(s, "underline")
355
356
0 commit comments