diff options
author | zeertzjq <zeertzjq@outlook.com> | 2024-07-30 13:38:13 +0800 |
---|---|---|
committer | zeertzjq <zeertzjq@outlook.com> | 2024-07-31 10:49:57 +0800 |
commit | 619cb143f93fbf75adde9710415a74d36c8eb63d (patch) | |
tree | 9596ca94c741f694adda53e95bb2ec98a3ca8566 /src/nvim/eval/executor.c | |
parent | a1561cbbea55cc74d4dc880585f942f4a114c4b8 (diff) | |
download | rneovim-619cb143f93fbf75adde9710415a74d36c8eb63d.tar.gz rneovim-619cb143f93fbf75adde9710415a74d36c8eb63d.tar.bz2 rneovim-619cb143f93fbf75adde9710415a74d36c8eb63d.zip |
vim-patch:9.1.0415: Some functions are not tested
Problem: Some functions are not tested
Solution: Add a few more tests, fix a few minor problems
(Yegappan Lakshmanan)
closes: vim/vim#14789
https://github.com/vim/vim/commit/fe424d13ef6e5486923f23f15bb6951e3079412e
Co-authored-by: Yegappan Lakshmanan <yegappan@yahoo.com>
Diffstat (limited to 'src/nvim/eval/executor.c')
-rw-r--r-- | src/nvim/eval/executor.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/nvim/eval/executor.c b/src/nvim/eval/executor.c index 26b7a627a6..5b92f217d1 100644 --- a/src/nvim/eval/executor.c +++ b/src/nvim/eval/executor.c @@ -31,7 +31,13 @@ static int tv_op_blob(typval_T *tv1, const typval_T *tv2, const char *op) } // Blob += Blob - if (tv1->vval.v_blob == NULL || tv2->vval.v_blob == NULL) { + if (tv2->vval.v_blob == NULL) { + return OK; + } + + if (tv1->vval.v_blob == NULL) { + tv1->vval.v_blob = tv2->vval.v_blob; + tv1->vval.v_blob->bv_refcount++; return OK; } |