From fc20e8d04b1dc07b5026a8654191ffe8ee521434 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Wed, 16 Nov 2022 22:30:58 +0530 Subject: [PATCH] Fix spurious EOF error when select for reading from the tty fails with a temporary error --- tools/tui/loop/read.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tools/tui/loop/read.go b/tools/tui/loop/read.go index 9cc13058b..0ceb1b3c0 100644 --- a/tools/tui/loop/read.go +++ b/tools/tui/loop/read.go @@ -86,9 +86,7 @@ func read_from_tty(pipe_r *os.File, term *tty.Term, results_channel chan<- []byt break } if n == 0 { - err_channel <- io.EOF - keep_going = false - break + continue } send := buf[:n] buf = buf[n:]