aboutsummaryrefslogtreecommitdiff
path: root/scripts/gen_vimdoc.py
diff options
context:
space:
mode:
authorTJ DeVries <devries.timothyj@gmail.com>2020-07-19 17:16:48 -0400
committerGitHub <noreply@github.com>2020-07-19 17:16:48 -0400
commit398201cfabaef47aa93c8a485336a00ef075ad3e (patch)
treeb9e7ae1ca4fdbf31f9fe90c678f75a05e12ad0bf /scripts/gen_vimdoc.py
parent56f3b95180ba011d9228c30c44eee9a9ab0fef84 (diff)
downloadrneovim-398201cfabaef47aa93c8a485336a00ef075ad3e.tar.gz
rneovim-398201cfabaef47aa93c8a485336a00ef075ad3e.tar.bz2
rneovim-398201cfabaef47aa93c8a485336a00ef075ad3e.zip
lua: Fix crash on unprotected lua errors (#12658)
Can be reproduced with a script like this: -- in some lua file vim.fn.timer_start(10, function() error("uh....") end) -- will cause neovim to crash with the following error. PANIC: unprotected error in call to Lua API (nlua_CFunction_func_call failed.) After this, it will instead print the error message from the top of the stack, like so. tmp/error_nvim.lua:10: uh... Also added an example test. Previously this test caused the embedded nvim to panic.
Diffstat (limited to 'scripts/gen_vimdoc.py')
0 files changed, 0 insertions, 0 deletions