forked from aniani/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.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user