mirror of
https://github.com/Llewellynvdm/fzf.git
synced 2024-11-16 02:07:06 +00:00
parent
f96173cbe4
commit
8e2e63f9b9
@ -558,6 +558,11 @@ func (t *Terminal) resizeWindows() {
|
||||
width,
|
||||
height, false)
|
||||
}
|
||||
if !t.tui.IsOptimized() && t.theme != nil && t.theme.HasBg() {
|
||||
for i := 0; i < t.window.Height(); i++ {
|
||||
t.window.MoveAndClear(i, 0)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
func (t *Terminal) move(y int, x int, clear bool) {
|
||||
|
@ -175,6 +175,10 @@ type ColorTheme struct {
|
||||
Border Color
|
||||
}
|
||||
|
||||
func (t *ColorTheme) HasBg() bool {
|
||||
return t.Bg != colDefault
|
||||
}
|
||||
|
||||
type Event struct {
|
||||
Type int
|
||||
Char rune
|
||||
|
Loading…
Reference in New Issue
Block a user