diff options
author | zeertzjq <zeertzjq@outlook.com> | 2023-03-01 23:23:39 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-01 23:23:39 +0800 |
commit | f25d126b186e187f539a909824804d4bc88380e0 (patch) | |
tree | 235a4efe9c59e7cf671b2c47be3a0b56f4bcefc4 /test/functional/lua/vim_spec.lua | |
parent | 896d672736b32a8f4a4fa51844b44f266dcdcc6c (diff) | |
download | rneovim-f25d126b186e187f539a909824804d4bc88380e0.tar.gz rneovim-f25d126b186e187f539a909824804d4bc88380e0.tar.bz2 rneovim-f25d126b186e187f539a909824804d4bc88380e0.zip |
vim-patch:8.2.{1949,2781} (#22451)
vim-patch:8.2.2781: add() silently skips when adding to null list or blob
Problem: Add() silently skips when adding to null list or blob.
Solution: Give an error in Vim9 script. Allocate blob when it is NULL like
with list and dict.
https://github.com/vim/vim/commit/b7c21afef14bba0208f2c40d47c050a004eb2f34
Do not implicitly change a NULL blob/dict/list to an empty one.
N/A patches for version.c:
vim-patch:8.2.1949: Vim9: using extend() on null dict is silently ignored
Problem: Vim9: using extend() on null dict is silently ignored.
Solution: Give an error message. Initialize a dict variable with an empty
dictionary. (closes vim/vim#7251)
https://github.com/vim/vim/commit/348be7ed07d164970ec0004bc278e254eb0cf5bf
N/A because Nvim's current behavior is an error message as a locked
list/dict, which is more consistent. Ref #4615.
Co-authored-by: Bram Moolenaar <Bram@vim.org>
Diffstat (limited to 'test/functional/lua/vim_spec.lua')
0 files changed, 0 insertions, 0 deletions