Skip to content
This repository was archived by the owner on Apr 19, 2024. It is now read-only.

Commit 6cbb195

Browse files
authored
Fix Survey output on Windows (#413)
1 parent c07023a commit 6cbb195

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

terminal/output_windows.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,9 @@ func (w *Writer) Write(data []byte) (n int, err error) {
7171
var size int
7272
ch, size, err = r.ReadRune()
7373
if err != nil {
74+
if err == io.EOF {
75+
err = nil
76+
}
7477
return
7578
}
7679
n += size

0 commit comments

Comments
 (0)