aboutsummaryrefslogtreecommitdiffstats
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 d8170235..5b0be1aa 100644
--- a/widgets/terminal.go
+++ b/widgets/terminal.go
@@ -120,7 +120,7 @@ func NewTerminal(cmd *exec.Cmd) (*Terminal, error) {
buf := make([]byte, 4096)
for {
n, err := term.pty.Read(buf)
- if err != nil {
+ if err != nil || term.closed {
// These are generally benine errors when the process exits
term.Close(nil)
return