mirror of
https://github.com/Llewellynvdm/fzf.git
synced 2025-01-09 17:53:56 +00:00
Do not try to print anything is screen height is zero
This commit is contained in:
parent
e5cfc988ec
commit
543d41f3dd
@ -1918,6 +1918,10 @@ func (t *Terminal) printLabel(window tui.Window, render labelPrinter, opts label
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if window.Height() == 0 {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
switch borderShape {
|
switch borderShape {
|
||||||
case tui.BorderHorizontal, tui.BorderTop, tui.BorderBottom, tui.BorderRounded, tui.BorderSharp, tui.BorderBold, tui.BorderBlock, tui.BorderThinBlock, tui.BorderDouble:
|
case tui.BorderHorizontal, tui.BorderTop, tui.BorderBottom, tui.BorderRounded, tui.BorderSharp, tui.BorderBold, tui.BorderBlock, tui.BorderThinBlock, tui.BorderDouble:
|
||||||
if redrawBorder {
|
if redrawBorder {
|
||||||
@ -2055,7 +2059,7 @@ func (t *Terminal) printInfo() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (t *Terminal) printInfoImpl() {
|
func (t *Terminal) printInfoImpl() {
|
||||||
if t.window.Width() <= 1 {
|
if t.window.Width() <= 1 || t.window.Height() == 0 {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
pos := 0
|
pos := 0
|
||||||
|
Loading…
Reference in New Issue
Block a user