mirror of
https://github.com/junegunn/fzf.git
synced 2025-08-14 19:55:49 -07:00
@@ -558,6 +558,11 @@ func (t *Terminal) resizeWindows() {
|
|||||||
width,
|
width,
|
||||||
height, false)
|
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) {
|
func (t *Terminal) move(y int, x int, clear bool) {
|
||||||
|
@@ -175,6 +175,10 @@ type ColorTheme struct {
|
|||||||
Border Color
|
Border Color
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (t *ColorTheme) HasBg() bool {
|
||||||
|
return t.Bg != colDefault
|
||||||
|
}
|
||||||
|
|
||||||
type Event struct {
|
type Event struct {
|
||||||
Type int
|
Type int
|
||||||
Char rune
|
Char rune
|
||||||
|
Reference in New Issue
Block a user