aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/event/process.c
diff options
context:
space:
mode:
authorbfredl <bjorn.linse@gmail.com>2024-06-09 11:33:00 +0200
committerGitHub <noreply@github.com>2024-06-09 11:33:00 +0200
commit2b2dd6accf249f03f78f72c75ce7e516f1c1ac3c (patch)
treedb5c33d8cc633fae5d74cd361e0a00c12f6541cc /src/nvim/event/process.c
parent9afa1fd35510c5fe485f4a1dfdabf94e5f051a1c (diff)
parent78d21593a35cf89692224f1000a04d3c9fff8add (diff)
downloadrneovim-2b2dd6accf249f03f78f72c75ce7e516f1c1ac3c.tar.gz
rneovim-2b2dd6accf249f03f78f72c75ce7e516f1c1ac3c.tar.bz2
rneovim-2b2dd6accf249f03f78f72c75ce7e516f1c1ac3c.zip
Merge pull request #29141 from bfredl/rstream2
refactor(io): make rstream use a linear buffer
Diffstat (limited to 'src/nvim/event/process.c')
-rw-r--r--src/nvim/event/process.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/nvim/event/process.c b/src/nvim/event/process.c
index 710376cd62..70fc31ba21 100644
--- a/src/nvim/event/process.c
+++ b/src/nvim/event/process.c
@@ -18,7 +18,6 @@
#include "nvim/os/pty_process.h"
#include "nvim/os/shell.h"
#include "nvim/os/time.h"
-#include "nvim/rbuffer_defs.h"
#include "nvim/ui_client.h"
#ifdef INCLUDE_GENERATED_DECLARATIONS
@@ -355,7 +354,7 @@ static void flush_stream(Process *proc, RStream *stream)
int err = uv_recv_buffer_size((uv_handle_t *)&stream->s.uv.pipe,
&system_buffer_size);
if (err) {
- system_buffer_size = (int)rbuffer_capacity(stream->buffer);
+ system_buffer_size = ARENA_BLOCK_SIZE;
}
size_t max_bytes = stream->num_bytes + (size_t)system_buffer_size;