mirror of
https://github.com/neovim/neovim.git
synced 2025-10-09 11:26:37 +00:00
vim-patch:8.1.0802: negative index doesn't work for Blob
Problem: Negative index doesn't work for Blob.
Solution: Make it work, add a test. (closes vim/vim#3856)
a5be9b6248
Leave tv_blob_get()'s return type untouched.
This commit is contained in:
@@ -2266,7 +2266,7 @@ void tv_blob_copy(typval_T *const from, typval_T *const to)
|
||||
to->vval.v_blob = NULL;
|
||||
} else {
|
||||
tv_blob_alloc_ret(to);
|
||||
const int len = from->vval.v_blob->bv_ga.ga_len;
|
||||
int len = from->vval.v_blob->bv_ga.ga_len;
|
||||
|
||||
if (len > 0) {
|
||||
to->vval.v_blob->bv_ga.ga_data
|
||||
|
Reference in New Issue
Block a user