diff options
| author | zeertzjq <zeertzjq@outlook.com> | 2025-08-31 06:44:23 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-08-31 06:44:23 +0800 |
| commit | 6a330f893bf15ecab99f1fc796029c7bdba71139 (patch) | |
| tree | 87205a3604dbb5974befff331a6b2f3a56e14338 /test/functional/lua/luaeval_spec.lua | |
| parent | 1b3abfa688865d95b85c27d3e523c087669604a2 (diff) | |
| download | rneovim-6a330f893bf15ecab99f1fc796029c7bdba71139.tar.gz rneovim-6a330f893bf15ecab99f1fc796029c7bdba71139.tar.bz2 rneovim-6a330f893bf15ecab99f1fc796029c7bdba71139.zip | |
fix(lua): report error in Lua Funcref callback properly (#35555)
Diffstat (limited to 'test/functional/lua/luaeval_spec.lua')
| -rw-r--r-- | test/functional/lua/luaeval_spec.lua | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/functional/lua/luaeval_spec.lua b/test/functional/lua/luaeval_spec.lua index a203fc27c5..6e2f5c08cb 100644 --- a/test/functional/lua/luaeval_spec.lua +++ b/test/functional/lua/luaeval_spec.lua @@ -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) @@ -289,6 +290,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() |