mirror of
https://github.com/neovim/neovim.git
synced 2025-10-05 09:26:30 +00:00
fix(lua): report error in Lua Funcref callback properly (#35555)
This commit is contained in:
@@ -1496,7 +1496,7 @@ int typval_exec_lua_callable(LuaRef lua_cb, int argcount, typval_T *argvars, typ
|
||||
PUSH_ALL_TYPVALS(lstate, argvars, argcount, false);
|
||||
|
||||
if (nlua_pcall(lstate, argcount, 1)) {
|
||||
nlua_print(lstate);
|
||||
nlua_error(lstate, _("Lua callback: %.*s"));
|
||||
return FCERR_OTHER;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user