diff options
author | Thiago de Arruda <tpadilha84@gmail.com> | 2014-10-17 09:17:12 -0300 |
---|---|---|
committer | Thiago de Arruda <tpadilha84@gmail.com> | 2014-10-18 08:42:49 -0300 |
commit | 68de5d79a243fecc9ef256d9d0356f8541aa3821 (patch) | |
tree | 41250bef42d81344a36d6056f211d761be6e876d /src/nvim/eval.c | |
parent | 56ef9e86688e79dc6a6bffe73c505eaaddf3be2d (diff) | |
download | rneovim-68de5d79a243fecc9ef256d9d0356f8541aa3821.tar.gz rneovim-68de5d79a243fecc9ef256d9d0356f8541aa3821.tar.bz2 rneovim-68de5d79a243fecc9ef256d9d0356f8541aa3821.zip |
rstream: Extract some RStream functionality to RBuffer
RBuffer instances represent the internal buffer used by RStreams.
This changes RStream constructor to receive RBuffer pointers and adds a set of
RBuffer methods that expose the lower level buffer manipulation to consumers of
the RStream API.
Diffstat (limited to 'src/nvim/eval.c')
-rw-r--r-- | src/nvim/eval.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/eval.c b/src/nvim/eval.c index 8b02a4187a..e3bd37a03f 100644 --- a/src/nvim/eval.c +++ b/src/nvim/eval.c @@ -19531,7 +19531,7 @@ static void on_job_exit(Job *job, void *data) static void on_job_data(RStream *rstream, void *data, bool eof, char *type) { Job *job = data; - uint32_t read_count = rstream_available(rstream); + uint32_t read_count = rstream_pending(rstream); char *str = xmalloc(read_count + 1); rstream_read(rstream, str, read_count); |