diff options
author | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2021-05-10 23:00:00 -0400 |
---|---|---|
committer | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2021-05-12 19:13:28 -0400 |
commit | 89e29e8774ed953048ab746d4a83a6f08d850d17 (patch) | |
tree | bd701b6dae9a542d832631be873cf2d47961418a /src/nvim/api/buffer.c | |
parent | 61aefaf2993c0b55f6123ba4b0bd41b1caf1fcd3 (diff) | |
download | rneovim-89e29e8774ed953048ab746d4a83a6f08d850d17.tar.gz rneovim-89e29e8774ed953048ab746d4a83a6f08d850d17.tar.bz2 rneovim-89e29e8774ed953048ab746d4a83a6f08d850d17.zip |
fixup! refactor nvim_buf_set_lines to use extmark_splice
Diffstat (limited to 'src/nvim/api/buffer.c')
-rw-r--r-- | src/nvim/api/buffer.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/api/buffer.c b/src/nvim/api/buffer.c index ebc9aeb75f..11a4647d1c 100644 --- a/src/nvim/api/buffer.c +++ b/src/nvim/api/buffer.c @@ -477,7 +477,7 @@ void nvim_buf_set_lines(uint64_t channel_id, goto end; } - inserted_bytes += STRLEN(lines[i]) + 1; + inserted_bytes += (bcount_t)strlen(lines[i]) + 1; // Mark lines that haven't been passed to the buffer as they need // to be freed later lines[i] = NULL; @@ -497,7 +497,7 @@ void nvim_buf_set_lines(uint64_t channel_id, goto end; } - inserted_bytes += STRLEN(lines[i]) + 1; + inserted_bytes += (bcount_t)strlen(lines[i]) + 1; // Same as with replacing, but we also need to free lines xfree(lines[i]); |