mirror of
https://github.com/neovim/neovim.git
synced 2025-10-09 03:16:31 +00:00
rstream: Pass read count to read events
This is necessary to keep events in the same order received from the OS.
This commit is contained in:
@@ -328,7 +328,8 @@ static void channel_from_stdio(void)
|
||||
wstream_init_fd(&loop, &channel->data.std.out, 1, 0, NULL);
|
||||
}
|
||||
|
||||
static void forward_stderr(Stream *stream, RBuffer *rbuf, void *data, bool eof)
|
||||
static void forward_stderr(Stream *stream, RBuffer *rbuf, size_t count,
|
||||
void *data, bool eof)
|
||||
{
|
||||
while (rbuffer_size(rbuf)) {
|
||||
char buf[256];
|
||||
@@ -343,7 +344,8 @@ static void process_exit(Process *proc, int status, void *data)
|
||||
decref(data);
|
||||
}
|
||||
|
||||
static void parse_msgpack(Stream *stream, RBuffer *rbuf, void *data, bool eof)
|
||||
static void parse_msgpack(Stream *stream, RBuffer *rbuf, size_t c, void *data,
|
||||
bool eof)
|
||||
{
|
||||
Channel *channel = data;
|
||||
incref(channel);
|
||||
|
Reference in New Issue
Block a user