diff options
author | b-r-o-c-k <brockmammen@gmail.com> | 2018-04-14 14:59:07 -0500 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2018-04-14 21:59:07 +0200 |
commit | ee4e1fd8ecf1747b55d2968084047552429cedee (patch) | |
tree | 0090701e9b5168472fcceaca807b1b08ddea26ec /test/functional/eval/system_spec.lua | |
parent | ef4feab0e75be19c5f41d70a001db980b72090f5 (diff) | |
download | rneovim-ee4e1fd8ecf1747b55d2968084047552429cedee.tar.gz rneovim-ee4e1fd8ecf1747b55d2968084047552429cedee.tar.bz2 rneovim-ee4e1fd8ecf1747b55d2968084047552429cedee.zip |
win: Fix reading content from stdin (#8267)
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] https://github.com/vim/vim/blob/e7499ddc33508d3d341e96f84a0e7b95b2d6927c/src/fileio.c#L2397-L2398
[2] https://github.com/vim/vim/blob/e7499ddc33508d3d341e96f84a0e7b95b2d6927c/src/os_win32.c#L1703-L1714
Diffstat (limited to 'test/functional/eval/system_spec.lua')
0 files changed, 0 insertions, 0 deletions