diff options
author | Thiago de Arruda <tpadilha84@gmail.com> | 2014-04-16 21:17:22 -0300 |
---|---|---|
committer | Thiago de Arruda <tpadilha84@gmail.com> | 2014-04-18 16:11:59 -0300 |
commit | 350144f5113e111fea0d5b33589d6d478280f298 (patch) | |
tree | f4b171dab623dba155a171c519bf304085d89bff /src/os/job.c | |
parent | c40428c934534b44f847b62cad54c38169bbdb83 (diff) | |
download | rneovim-350144f5113e111fea0d5b33589d6d478280f298.tar.gz rneovim-350144f5113e111fea0d5b33589d6d478280f298.tar.bz2 rneovim-350144f5113e111fea0d5b33589d6d478280f298.zip |
Create EventType for RStream reading
RStream will be the main way Neovim receives asynchronous messages, so it is
best to have a specialized EventType for it. A new flag parameter was added to
`rstream_new` which tells the RStream instance to defer event handling for later
with KE_EVENT instead of handling it directly from libuv callback.
Diffstat (limited to 'src/os/job.c')
-rw-r--r-- | src/os/job.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/os/job.c b/src/os/job.c index 5dd4f7abe1..5bd404e5be 100644 --- a/src/os/job.c +++ b/src/os/job.c @@ -159,8 +159,8 @@ int job_start(char **argv, void *data, job_read_cb cb) } // Start the readable streams - job->out = rstream_new(read_cb, JOB_BUFFER_SIZE, job); - job->err = rstream_new(read_cb, JOB_BUFFER_SIZE, job); + job->out = rstream_new(read_cb, JOB_BUFFER_SIZE, job, false); + job->err = rstream_new(read_cb, JOB_BUFFER_SIZE, job, false); rstream_set_stream(job->out, (uv_stream_t *)&job->proc_stdout); rstream_set_stream(job->err, (uv_stream_t *)&job->proc_stderr); rstream_start(job->out); |