diff options
author | bfredl <bjorn.linse@gmail.com> | 2024-06-01 09:53:45 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-01 09:53:45 +0200 |
commit | 2008fe7b85a8c03cbff3ed51c5715ddf5cb555fd (patch) | |
tree | 3fe96507019c1d493f2e7f5212c35f063195b29d /src/nvim/os/shell.c | |
parent | 50f6d364c661b88a1edc5ffc8e284d1c0ff70810 (diff) | |
parent | c13c50b752dca322a5ec77dea6188c9e3694549b (diff) | |
download | rneovim-2008fe7b85a8c03cbff3ed51c5715ddf5cb555fd.tar.gz rneovim-2008fe7b85a8c03cbff3ed51c5715ddf5cb555fd.tar.bz2 rneovim-2008fe7b85a8c03cbff3ed51c5715ddf5cb555fd.zip |
Merge pull request #29106 from bfredl/rwstream
refactor(io): separate types for read and write streams
Diffstat (limited to 'src/nvim/os/shell.c')
-rw-r--r-- | src/nvim/os/shell.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/nvim/os/shell.c b/src/nvim/os/shell.c index 2a10510b0f..958faa4d22 100644 --- a/src/nvim/os/shell.c +++ b/src/nvim/os/shell.c @@ -987,7 +987,7 @@ static void dynamic_buffer_ensure(DynamicBuffer *buf, size_t desired) buf->data = xrealloc(buf->data, buf->cap); } -static void system_data_cb(Stream *stream, RBuffer *buf, size_t count, void *data, bool eof) +static void system_data_cb(RStream *stream, RBuffer *buf, size_t count, void *data, bool eof) { DynamicBuffer *dbuf = data; @@ -1151,7 +1151,7 @@ end: ui_flush(); } -static void out_data_cb(Stream *stream, RBuffer *buf, size_t count, void *data, bool eof) +static void out_data_cb(RStream *stream, RBuffer *buf, size_t count, void *data, bool eof) { size_t cnt; char *ptr = rbuffer_read_ptr(buf, &cnt); @@ -1331,7 +1331,7 @@ static void shell_write_cb(Stream *stream, void *data, int status) msg_schedule_semsg(_("E5677: Error writing input to shell-command: %s"), uv_err_name(status)); } - stream_close(stream, NULL, NULL); + stream_close(stream, NULL, NULL, false); } /// Applies 'shellxescape' (p_sxe) and 'shellxquote' (p_sxq) to a command. |