win: Fix reading from stdin

* Reading from stdin on Windows is fixed in the same way as it was in
  #8267.
* The file_read function was returning without filling the
  destination buffer when it was called with a non-blocking file
  descriptor.
This commit is contained in:
b-r-o-c-k
2018-04-14 14:21:36 -05:00
parent ad999eaa77
commit 387fbcd95c
3 changed files with 16 additions and 6 deletions

View File

@@ -36,7 +36,6 @@ describe('Command-line option', function()
os.remove(dollar_fname)
end)
it('treats - as stdin', function()
if helpers.pending_win32(pending) then return end
eq(nil, lfs.attributes(fname))
funcs.system(
{nvim_prog_abs(), '-u', 'NONE', '-i', 'NONE', '--headless',