aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--widgets/terminal.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/widgets/terminal.go b/widgets/terminal.go
index 437c9955..aa7c2bad 100644
--- a/widgets/terminal.go
+++ b/widgets/terminal.go
@@ -230,6 +230,9 @@ func (term *Terminal) Draw(ctx *ui.Context) {
Cols: uint16(ctx.Width()),
Rows: uint16(ctx.Height()),
}
+ if winsize.Cols == 0 || winsize.Rows == 0 {
+ return
+ }
if term.pty == nil {
term.vterm.SetSize(ctx.Height(), ctx.Width())