summaryrefslogtreecommitdiff
path: root/src/tui/light.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/tui/light.go')
-rw-r--r--src/tui/light.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/tui/light.go b/src/tui/light.go
index f202899a..3ed24f71 100644
--- a/src/tui/light.go
+++ b/src/tui/light.go
@@ -794,6 +794,9 @@ func (r *LightRenderer) NewWindow(top int, left int, width int, height int, prev
w.fg = r.theme.Fg.Color
w.bg = r.theme.Bg.Color
}
+ if !w.bg.IsDefault() && w.border.shape != BorderNone {
+ w.Erase()
+ }
w.drawBorder(false)
return w
}