aboutsummaryrefslogtreecommitdiff
path: root/widgets/terminal.go
diff options
context:
space:
mode:
Diffstat (limited to 'widgets/terminal.go')
-rw-r--r--widgets/terminal.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/widgets/terminal.go b/widgets/terminal.go
index aa7c2ba..008a36f 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
}