summary refs log tree commit diff stats
path: root/widgets
diff options
context:
space:
mode:
Diffstat (limited to 'widgets')
-rw-r--r--widgets/terminal.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/widgets/terminal.go b/widgets/terminal.go
index d817023..5b0be1a 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