[input] initialize stdinhandle on windows #2192

pull/2197/head
nick black 3 years ago
parent 7c197fba59
commit 690ed75c8f
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC

@ -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)

Loading…
Cancel
Save