diff options
author | zeertzjq <zeertzjq@outlook.com> | 2024-04-16 11:59:55 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-16 11:59:55 +0800 |
commit | 47ba96a6b3bf22097134b319ed97ec840b05eaa7 (patch) | |
tree | 5648a7d06e9bc73f5f11e2cdd52e19f4fa04915f /src | |
parent | 60fb8a6a8bd94132a5dbf3a4520ba0db7ae5a9e3 (diff) | |
download | rneovim-47ba96a6b3bf22097134b319ed97ec840b05eaa7.tar.gz rneovim-47ba96a6b3bf22097134b319ed97ec840b05eaa7.tar.bz2 rneovim-47ba96a6b3bf22097134b319ed97ec840b05eaa7.zip |
test: getting autocmd Lua callback in Vimscript (#28367)
Also remove unnecessary variable in API converter.
Diffstat (limited to 'src')
-rw-r--r-- | src/nvim/api/private/converter.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/nvim/api/private/converter.c b/src/nvim/api/private/converter.c index a70ef1e50b..a78d78c057 100644 --- a/src/nvim/api/private/converter.c +++ b/src/nvim/api/private/converter.c @@ -76,8 +76,7 @@ static Object typval_cbuf_to_obj(EncodedData *edata, const char *data, size_t le do { \ ufunc_T *fp = find_func(fun); \ if (fp != NULL && (fp->uf_flags & FC_LUAREF)) { \ - LuaRef ref = api_new_luaref(fp->uf_luaref); \ - kvi_push(edata->stack, LUAREF_OBJ(ref)); \ + kvi_push(edata->stack, LUAREF_OBJ(api_new_luaref(fp->uf_luaref))); \ } else { \ TYPVAL_ENCODE_CONV_NIL(tv); \ } \ |