Skip to content

Commit c7a6b4e

Browse files
committed
[200_22] 修复read-line无法检测到Ctrl+D的问题
1 parent 6958308 commit c7a6b4e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/s7.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26937,7 +26937,7 @@ static s7_pointer stdin_read_line(s7_scheme *sc, s7_pointer port, bool with_eol)
2693726937
}
2693826938
if (fgets(sc->read_line_buf, sc->read_line_buf_size, stdin))
2693926939
return(s7_make_string(sc, sc->read_line_buf)); /* fgets adds the trailing '\0' */
26940-
return(nil_string);
26940+
return(eof_object);
2694126941
}
2694226942

2694326943
static s7_pointer file_read_line(s7_scheme *sc, s7_pointer port, bool with_eol)

0 commit comments

Comments
 (0)