1
0
mirror of https://github.com/janet-lang/janet synced 2024-12-25 07:50: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) {
FILE *out = janet_dynfile("out", stdout);
fputs(p, out);
fflush(p, out);
fflush(out);
simpleline(buffer);
}