Fix custom foreground color inside preview window

Close #1046
pull/1047/merge
Junegunn Choi 7 years ago
parent a8deca2dd9
commit e3973c74e7
No known key found for this signature in database
GPG Key ID: 254BC280FEF9C627

@ -990,7 +990,7 @@ func (t *Terminal) printPreview() {
if t.theme != nil && ansi != nil && ansi.colored() {
fillRet = t.pwindow.CFill(ansi.fg, ansi.bg, ansi.attr, str)
} else {
fillRet = t.pwindow.Fill(str)
fillRet = t.pwindow.CFill(tui.ColNormal.Fg(), tui.ColNormal.Bg(), tui.AttrRegular, str)
}
return fillRet == tui.FillContinue
})

Loading…
Cancel
Save