summaryrefslogtreecommitdiff
path: root/src/blob.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2020-10-19 20:21:03 +0200
committerBram Moolenaar <Bram@vim.org>2020-10-19 20:21:03 +0200
commit66fa5fd54f550c0790d36c20124c49493b323bfa (patch)
tree0e6367f0f6677dc61cae3033c0a2c68f4c4e2eb3 /src/blob.c
parent1dcae59957301b6b19aef49af648715f911a1378 (diff)
downloadvim-git-66fa5fd54f550c0790d36c20124c49493b323bfa.tar.gz
patch 8.2.1866: Vim9: appending to pushed blob gives wrong resultv8.2.1866
Problem: Vim9: appending to pushed blob gives wrong result. Solution: Set ga_maxlen when copying a blob.
Diffstat (limited to 'src/blob.c')
-rw-r--r--src/blob.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/blob.c b/src/blob.c
index f105170cf..264962e19 100644
--- a/src/blob.c
+++ b/src/blob.c
@@ -80,6 +80,7 @@ blob_copy(blob_T *from, typval_T *to)
len = 0;
}
to->vval.v_blob->bv_ga.ga_len = len;
+ to->vval.v_blob->bv_ga.ga_maxlen = len;
}
return ret;
}