Skip to content
Myr

Do not try to print anything is screen height is zero

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Junegunn Choi · committed by Junegunn Choi · parent e5cfc98 · Browse files · 1 file+5 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+5 added−1 removed

  • other:+5 added−1 removed

1 file+5 added−1 removed

modified:src/terminal.go+5 added-1 removed
1916 unmodified lines
1917 if window == nil {1918 return1919 }19201921 if window.Height() == 0 {1922 return1923 }19241925 switch borderShape {1926 case tui.BorderHorizontal, tui.BorderTop, tui.BorderBottom, tui.BorderRounded, tui.BorderSharp, tui.BorderBold, tui.BorderBlock, tui.BorderThinBlock, tui.BorderDouble:1927 if redrawBorder {1928 window.DrawHBorder()
129 unmodified lines
2058 })2059}20602061func (t *Terminal) printInfoImpl() {2058 if t.window.Width() <= 1 {2062 if t.window.Width() <= 1 || t.window.Height() == 0 {2063 return2064 }2065 pos := 02066 line := t.promptLine()
3514 unmodified lines