mirror of
https://github.com/neovim/neovim.git
synced 2025-09-06 19:38:20 +00:00
fix(lua): report error in Lua Funcref callback properly (#35555)
This commit is contained in:
@@ -16,6 +16,7 @@ local feed = n.feed
|
||||
local assert_alive = n.assert_alive
|
||||
local NIL = vim.NIL
|
||||
local eq = t.eq
|
||||
local matches = t.matches
|
||||
|
||||
before_each(clear)
|
||||
|
||||
@@ -266,6 +267,8 @@ describe('luaeval()', function()
|
||||
|
||||
return true
|
||||
]])
|
||||
-- v:errmsg is set properly #35554
|
||||
matches(': dead function\n', api.nvim_get_vvar('errmsg'))
|
||||
end)
|
||||
|
||||
it('should handle passing functions around', function()
|
||||
|
Reference in New Issue
Block a user