From 645447293851749fcc3394cd387d7070d8a9c735 Mon Sep 17 00:00:00 2001
From: Hamid Bluri
Date: Mon, 7 Mar 2022 12:51:42 +0330
Subject: [PATCH] fix not flushing stdout in MSYS (#19590)
I did this pull request according to what xflywind said: https://github.com/nim-lang/Nim/pull/19584#issuecomment-1060085141
---
lib/impure/rdstdin.nim | 1 +
1 file changed, 1 insertion(+)
diff --git a/lib/impure/rdstdin.nim b/lib/impure/rdstdin.nim
index 32048b1310..adc0e212d9 100644
--- a/lib/impure/rdstdin.nim
+++ b/lib/impure/rdstdin.nim
@@ -27,6 +27,7 @@ when defined(windows):
tags: [ReadIOEffect, WriteIOEffect].} =
## Reads a line from stdin.
stdout.write(prompt)
+ stdout.flushFile()
result = readLine(stdin)
proc readLineFromStdin*(prompt: string, line: var string): bool {.