aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/lua/executor.c
diff options
context:
space:
mode:
authorbfredl <bjorn.linse@gmail.com>2022-02-28 20:57:24 +0100
committerGitHub <noreply@github.com>2022-02-28 20:57:24 +0100
commitcf0266fae1b24ced577dfb8673c11efd4ceb1627 (patch)
tree0f0e998db32c33139809bce38b18e6ae54639165 /src/nvim/lua/executor.c
parent6732cd9e57bf39d1a0f5c4fa08fa54c1561f2d2f (diff)
parent0f613482b389ad259dd53d893907b024a115352e (diff)
downloadrneovim-cf0266fae1b24ced577dfb8673c11efd4ceb1627.tar.gz
rneovim-cf0266fae1b24ced577dfb8673c11efd4ceb1627.tar.bz2
rneovim-cf0266fae1b24ced577dfb8673c11efd4ceb1627.zip
Merge pull request #17551 from bfredl/lua_autocmd_rebase
feat(lua_autocmd): episode III (the autocmds strike back)
Diffstat (limited to 'src/nvim/lua/executor.c')
-rw-r--r--src/nvim/lua/executor.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/nvim/lua/executor.c b/src/nvim/lua/executor.c
index 18abf04ff6..07071d4e1e 100644
--- a/src/nvim/lua/executor.c
+++ b/src/nvim/lua/executor.c
@@ -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);