mirror of
https://github.com/neovim/neovim.git
synced 2025-10-16 06:46:07 +00:00
@@ -542,7 +542,7 @@ ptrdiff_t os_readv(const int fd, bool *const ret_eof, struct iovec *iov,
|
||||
}
|
||||
while (read_bytes < toread && iov_size && !*ret_eof) {
|
||||
ptrdiff_t cur_read_bytes = readv(fd, iov, (int)iov_size);
|
||||
if (toread && cur_read_bytes == 0) {
|
||||
if (cur_read_bytes == 0) {
|
||||
*ret_eof = true;
|
||||
}
|
||||
if (cur_read_bytes > 0) {
|
||||
|
Reference in New Issue
Block a user