mirror of
https://github.com/neovim/neovim.git
synced 2025-10-26 12:27:24 +00:00
fix(lua): show error message when failing to set variable
(cherry picked from commit 2c5d373ede)
This commit is contained in:
committed by
github-actions[bot]
parent
6156d3fdc9
commit
8063aa7cf6
@@ -1459,6 +1459,8 @@ describe('lua stdlib', function()
|
||||
eq(NIL, funcs.luaeval "vim.v.null")
|
||||
matches([[attempt to index .* nil value]],
|
||||
pcall_err(exec_lua, 'return vim.v[0].progpath'))
|
||||
eq('Key is read-only: count', pcall_err(exec_lua, 'vim.v.count = 42'))
|
||||
eq('Dictionary is locked', pcall_err(exec_lua, 'vim.v.nosuchvar = 42'))
|
||||
end)
|
||||
|
||||
it('vim.bo', function()
|
||||
|
||||
Reference in New Issue
Block a user