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
This commit is contained in:
bfredl
2026-05-20 21:02:00 +02:00
parent 526ae1cc1b
commit 24e23de721
7 changed files with 41 additions and 23 deletions

View File

@@ -32,7 +32,7 @@ describe('thread', function()
{1:~ }|*5
{3: }|
{9:Luv thread:} |
{9:[NULL]} |
{9:nil} |
{6:Press ENTER or type command to continue}^ |
]])
feed('<cr>')