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:
parent
7c35acca75
commit
a5e50a0f65
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user