Fix custom foreground color inside preview window

Close #1046
This commit is contained in:
Junegunn Choi 2017-09-08 18:15:31 +09:00
parent a8deca2dd9
commit e3973c74e7
No known key found for this signature in database
GPG Key ID: 254BC280FEF9C627

View File

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