From 24e23de721bb8ddc042e0f11f44f4ff2ff7ebb0b Mon Sep 17 00:00:00 2001 From: bfredl Date: Wed, 20 May 2026 21:02:00 +0200 Subject: fix(lua): use even safer and even better error() message conversion problem: this crashes neovim: ondska = setmetatable({}, {__tostring = error}) error(ondska) solution: make it not crash neovim --- test/functional/api/command_spec.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/functional/api/command_spec.lua') diff --git a/test/functional/api/command_spec.lua b/test/functional/api/command_spec.lua index d5a83015bc..c1eb1f92c3 100644 --- a/test/functional/api/command_spec.lua +++ b/test/functional/api/command_spec.lua @@ -828,7 +828,7 @@ describe('nvim_create_user_command', function() }) ]]) feed(':Test ') - eq('E5108: Lua function: [NULL]', api.nvim_get_vvar('errmsg')) + eq('E5108: Lua function: nil', api.nvim_get_vvar('errmsg')) eq('Test ', fn.getcmdline()) assert_alive() end) -- cgit