mirror of
https://github.com/neovim/neovim.git
synced 2025-09-17 08:48:16 +00:00
vim-patch:8.2.2782: Vim9: blob operations not fully tested
Problem: Vim9: blob operations not fully tested. Solution: Make more blob tests run in Vim9 script. Fix filter(). Make insert() give an error for a null blob, like add().39211cba72
vim-patch:8.2.3284: no error for insert() or remove() changing a locked blob Problem: No error for insert() or remove() changing a locked blob. Solution: Check a blob is not locked before changing it. (Sean Dewar, closes vim/vim#8696)80d7395dcf
Co-authored-by: Bram Moolenaar <Bram@vim.org> Co-authored-by: Sean Dewar <seandewar@users.noreply.github.com>
This commit is contained in:
@@ -4861,7 +4861,7 @@ void filter_map(typval_T *argvars, typval_T *rettv, int map)
|
||||
if (filter_map_one(&tv, expr, map, &rem) == FAIL || did_emsg) {
|
||||
break;
|
||||
}
|
||||
if (tv.v_type != VAR_NUMBER) {
|
||||
if (tv.v_type != VAR_NUMBER && tv.v_type != VAR_BOOL) {
|
||||
emsg(_(e_invalblob));
|
||||
return;
|
||||
}
|
||||
|
Reference in New Issue
Block a user