aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--widgets/terminal.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/widgets/terminal.go b/widgets/terminal.go
index aa7c2bad..008a36f0 100644
--- a/widgets/terminal.go
+++ b/widgets/terminal.go
@@ -230,7 +230,7 @@ func (term *Terminal) Draw(ctx *ui.Context) {
Cols: uint16(ctx.Width()),
Rows: uint16(ctx.Height()),
}
- if winsize.Cols == 0 || winsize.Rows == 0 {
+ if winsize.Cols == 0 || winsize.Rows == 0 || term.cmd == nil {
return
}