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/input.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/input.c')
-rw-r--r-- | src/os/input.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/os/input.c b/src/os/input.c index 4311d70e54..e0a00e006a 100644 --- a/src/os/input.c +++ b/src/os/input.c @@ -34,7 +34,7 @@ static int push_event_key(uint8_t *buf, int maxlen); void input_init() { - read_stream = rstream_new(read_cb, READ_BUFFER_SIZE, NULL); + read_stream = rstream_new(read_cb, READ_BUFFER_SIZE, NULL, false); rstream_set_file(read_stream, read_cmd_fd); } |