diff options
-rw-r--r-- | widgets/terminal.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/widgets/terminal.go b/widgets/terminal.go index 437c995..aa7c2ba 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()) |