Post an error event on receiving an error from the input.

This commit is contained in:
Garrett D'Amore 2017-09-25 07:14:38 -07:00
parent 50f9ed7673
commit 87c64c441a
1 changed files with 1 additions and 1 deletions

View File

@ -1303,7 +1303,7 @@ func (t *tScreen) inputLoop() {
case io.EOF:
case nil:
default:
close(t.indoneq)
t.PostEvent(NewEventError(e))
return
}
t.keychan <- chunk[:n]