From e3973c74e7eeb40eede286c88380402ef6996a88 Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Fri, 8 Sep 2017 18:15:31 +0900 Subject: [PATCH] Fix custom foreground color inside preview window Close #1046 --- src/terminal.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/terminal.go b/src/terminal.go index 5c66f44..92e3425 100644 --- a/src/terminal.go +++ b/src/terminal.go @@ -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 })