1
0
mirror of https://github.com/gdamore/tcell.git synced 2025-04-24 13:48:51 +08:00

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

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]