Skip to content

Commit 2183cda

Browse files
committed
set initial fg/bg
Signed-off-by: Alex Suraci <suraci.alex@gmail.com>
1 parent 4d6d865 commit 2183cda

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

render.go

+4
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,10 @@ func (vt *Terminal) renderLine(w io.Writer, row int, fg, bg termenv.Color) error
7979
}
8080
}
8181

82+
if fg != nil || bg != nil {
83+
format(Format{Fg: fg, Bg: bg})
84+
}
85+
8286
for region := range vt.Format.Regions(row) {
8387
line := vt.Content[row]
8488

0 commit comments

Comments
 (0)