mirror of
https://github.com/neovim/neovim.git
synced 2025-09-29 06:28:35 +00:00
feat(lua): add missing changes to autocmds lost in the rebase
Note: some of these changes are breaking, like change of API signatures
This commit is contained in:
@@ -1354,6 +1354,9 @@ bool nlua_ref_is_function(LuaRef ref)
|
||||
{
|
||||
lua_State *const lstate = global_lstate;
|
||||
nlua_pushref(lstate, ref);
|
||||
|
||||
// TODO(tjdevries): This should probably check for callable tables as well.
|
||||
// We should put some work maybe into simplifying how all of that works
|
||||
bool is_function = (lua_type(lstate, -1) == LUA_TFUNCTION);
|
||||
lua_pop(lstate, 1);
|
||||
|
||||
|
Reference in New Issue
Block a user