From 690ed75c8fbc37bbea00d1e140cae2cb9ea2882d Mon Sep 17 00:00:00 2001 From: nick black Date: Mon, 20 Sep 2021 04:33:41 -0400 Subject: [PATCH] [input] initialize stdinhandle on windows #2192 --- src/lib/in.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/lib/in.c b/src/lib/in.c index 523afb99e..1ca646312 100644 --- a/src/lib/in.c +++ b/src/lib/in.c @@ -461,6 +461,9 @@ create_inputctx(tinfo* ti, FILE* infp, int lmargin, int tmargin, i->stats = stats; i->ti = ti; i->stdineof = 0; +#ifdef __MINGW64__ + i->stdinhandle = ti->inhandle; +#endif i->ibufvalid = 0; // FIXME need to get this out of the initial termios // (as stored in tpreserved)