diff --git a/tools/tui/loop/run.go b/tools/tui/loop/run.go index 80dc3303d..0d37b18bf 100644 --- a/tools/tui/loop/run.go +++ b/tools/tui/loop/run.go @@ -276,7 +276,7 @@ func (self *Loop) run() (err error) { flush_writer(w_w, tty_write_channel, write_done_channel, self.pending_writes, 2*time.Second) self.pending_writes = nil // wait for tty reader to exit cleanly - for more := true; more; _, more = <-tty_read_channel { + for range tty_read_channel { } }()