1
0
mirror of https://github.com/janet-lang/janet synced 2024-12-26 08:20:27 +00:00

Fix windows getline.

This commit is contained in:
Calvin Rose 2019-06-18 00:04:29 -04:00
parent 7c35acca75
commit a5e50a0f65

View File

@ -59,7 +59,7 @@ void janet_line_deinit() {
void janet_line_get(const char *p, JanetBuffer *buffer) { void janet_line_get(const char *p, JanetBuffer *buffer) {
FILE *out = janet_dynfile("out", stdout); FILE *out = janet_dynfile("out", stdout);
fputs(p, out); fputs(p, out);
fflush(p, out); fflush(out);
simpleline(buffer); simpleline(buffer);
} }