aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/lua/executor.c
diff options
context:
space:
mode:
authorbfredl <bjorn.linse@gmail.com>2026-05-18 15:05:49 +0200
committerGitHub <noreply@github.com>2026-05-18 09:05:49 -0400
commite932d6ff170fd1b2f89f3755734de6615616956a (patch)
tree99a075e17539e269eaea5d8fb1bd603440c641bc /src/nvim/lua/executor.c
parent7b46848f140285be586cc3946db6976bd6bed2a5 (diff)
downloadrneovim-e932d6ff170fd1b2f89f3755734de6615616956a.tar.gz
rneovim-e932d6ff170fd1b2f89f3755734de6615616956a.tar.bz2
rneovim-e932d6ff170fd1b2f89f3755734de6615616956a.zip
fix(api): regressions with lua return values #39837
fixes #39834 fixes #39833 fixes #39851
Diffstat (limited to 'src/nvim/lua/executor.c')
-rw-r--r--src/nvim/lua/executor.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/lua/executor.c b/src/nvim/lua/executor.c
index b6847f0492..1ab51d7386 100644
--- a/src/nvim/lua/executor.c
+++ b/src/nvim/lua/executor.c
@@ -1808,7 +1808,7 @@ static int mode_ret(LuaRetMode mode)
Object nlua_call_ref_ctx(bool fast, LuaRef ref, const char *name, Array args, LuaRetMode mode,
Arena *arena, Error *err)
{
- lua_State *const lstate = global_lstate;
+ lua_State *const lstate = active_lstate;
int top = lua_gettop(lstate);
nlua_pushref(lstate, ref);
int nargs = (int)args.size;