summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJunegunn Choi <junegunn.c@gmail.com>2017-03-01 16:00:08 +0900
committerJunegunn Choi <junegunn.c@gmail.com>2017-03-01 16:00:08 +0900
commitc89ac341e4d9199ff0ca6ca7af29d9b14a1b7fbd (patch)
tree9dc5b77d9e9e5f705b82bd3230bdee87323db84b /src
parentcd59e5d07b3a69a75f7c0d02efd66b6f04bb13a1 (diff)
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
Diffstat (limited to 'src')
-rw-r--r--src/terminal.go2
1 files changed, 1 insertions, 1 deletions
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)
}