mirror of
https://github.com/neovim/neovim.git
synced 2025-12-16 03:15:39 +00:00
vim-patch:8.1.0897: can modify a:000 when using a reference (#14902)
Problem: Can modify a:000 when using a reference.
Solution: Make check for locked variable stricter. (Ozaki Kiichi,
closes vim/vim#3930)
05c00c038b
This commit is contained in:
@@ -2623,7 +2623,7 @@ describe('typval.c', function()
|
||||
describe('check_lock()', function()
|
||||
local function tv_check_lock(lock, name, name_len, emsg)
|
||||
return check_emsg(function()
|
||||
return lib.tv_check_lock(lock, name, name_len)
|
||||
return lib.var_check_lock(lock, name, name_len)
|
||||
end, emsg)
|
||||
end
|
||||
itp('works', function()
|
||||
|
||||
Reference in New Issue
Block a user