From 06301c7847c69915fe8214ab87480f0eba59c5bf Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Fri, 21 Jul 2017 16:43:00 +0900 Subject: [PATCH] Fix regression: ANSI color in preview window not cleared --- src/tui/light.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tui/light.go b/src/tui/light.go index 7fc231f..a7d12f3 100644 --- a/src/tui/light.go +++ b/src/tui/light.go @@ -882,8 +882,8 @@ func (w *LightWindow) CFill(fg Color, bg Color, attr Attr, text string) FillRetu bg = w.bg } if w.csiColor(fg, bg, attr) { - return w.fill(text, func() { w.csiColor(fg, bg, attr) }) defer w.csi("m") + return w.fill(text, func() { w.csiColor(fg, bg, attr) }) } return w.fill(text, w.setBg) }