From c89ac341e4d9199ff0ca6ca7af29d9b14a1b7fbd Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Wed, 1 Mar 2017 16:00:08 +0900 Subject: [PATCH] Clear background even if background color is not set This is needed when fzf is started from inside a program (e.g. Vim) and it uses a different background color than the terminal. - https://github.com/junegunn/fzf.vim/issues/325 - https://github.com/junegunn/fzf.vim/issues/300 --- src/terminal.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/terminal.go b/src/terminal.go index 4bff1b18..29f2c9d0 100644 --- a/src/terminal.go +++ b/src/terminal.go @@ -600,7 +600,7 @@ func (t *Terminal) resizeWindows() { width, height, tui.BorderNone) } - if !t.tui.IsOptimized() && t.theme != nil && t.theme.HasBg() { + if !t.tui.IsOptimized() { for i := 0; i < t.window.Height(); i++ { t.window.MoveAndClear(i, 0) }