diff options
author | Sean Dewar <seandewar@users.noreply.github.com> | 2021-09-16 20:16:48 +0100 |
---|---|---|
committer | Sean Dewar <seandewar@users.noreply.github.com> | 2021-09-16 20:20:43 +0100 |
commit | 89f7f7a991de6135f9009b832cd7736dabf2050c (patch) | |
tree | 853dd0505a789f1abce0fe918c57e83a4ccb2b41 /src | |
parent | 10283915d6fe463314a4dd44a88c4f6435996a1c (diff) | |
download | rneovim-89f7f7a991de6135f9009b832cd7736dabf2050c.tar.gz rneovim-89f7f7a991de6135f9009b832cd7736dabf2050c.tar.bz2 rneovim-89f7f7a991de6135f9009b832cd7736dabf2050c.zip |
vim-patch:8.2.1866: Vim9: appending to pushed blob gives wrong result
Problem: Vim9: appending to pushed blob gives wrong result.
Solution: Set ga_maxlen when copying a blob.
https://github.com/vim/vim/commit/66fa5fd54f550c0790d36c20124c49493b323bfa
Vim9script is N/A.
Diffstat (limited to 'src')
-rw-r--r-- | src/nvim/eval/typval.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/nvim/eval/typval.c b/src/nvim/eval/typval.c index b08fe274f0..381d70ea1b 100644 --- a/src/nvim/eval/typval.c +++ b/src/nvim/eval/typval.c @@ -2274,6 +2274,7 @@ void tv_blob_copy(typval_T *const from, typval_T *const to) = xmemdup(from->vval.v_blob->bv_ga.ga_data, (size_t)len); } to->vval.v_blob->bv_ga.ga_len = len; + to->vval.v_blob->bv_ga.ga_maxlen = len; } } |