mirror of
https://github.com/neovim/neovim.git
synced 2026-02-02 01:54:28 +00:00
Fixes #6890 by reading from the Windows console input buffer after stdin has been closed. Vim defines HAVE_DUP for Windows and does the close-dup dance[1]: close(0); dup(2); which always fails, then falls back to reading from the Windows console input buffer[2]. [1]e7499ddc33/src/fileio.c (L2397-L2398)[2]e7499ddc33/src/os_win32.c (L1703-L1714)