aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/lua/executor.c
diff options
context:
space:
mode:
authorBjörn Linse <bjorn.linse@gmail.com>2019-07-01 20:28:00 +0200
committerGitHub <noreply@github.com>2019-07-01 20:28:00 +0200
commit5e4b93a38f1ee2ba37ca3223399fbb49ff1656a1 (patch)
tree1dce6c971b511aa7ca6500e8a1583ff354f116c8 /src/nvim/lua/executor.c
parent6c5a6ab92d67f36f6812fcbf640e32c8a98c1f5b (diff)
parent6ee05536ca2668b8d45103a63be38b1de698c4a9 (diff)
downloadrneovim-5e4b93a38f1ee2ba37ca3223399fbb49ff1656a1.tar.gz
rneovim-5e4b93a38f1ee2ba37ca3223399fbb49ff1656a1.tar.bz2
rneovim-5e4b93a38f1ee2ba37ca3223399fbb49ff1656a1.zip
Merge pull request #10389 from bfredl/luafloat
api/lua: make nvim_execute_lua use native lua floats, not special tables
Diffstat (limited to 'src/nvim/lua/executor.c')
-rw-r--r--src/nvim/lua/executor.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/lua/executor.c b/src/nvim/lua/executor.c
index 4fd4e4c4fa..3fd1620845 100644
--- a/src/nvim/lua/executor.c
+++ b/src/nvim/lua/executor.c
@@ -562,7 +562,7 @@ Object executor_exec_lua_api(const String str, const Array args, Error *err)
}
for (size_t i = 0; i < args.size; i++) {
- nlua_push_Object(lstate, args.items[i]);
+ nlua_push_Object(lstate, args.items[i], false);
}
if (lua_pcall(lstate, (int)args.size, 1, 0)) {
@@ -583,7 +583,7 @@ Object executor_exec_lua_cb(LuaRef ref, const char *name, Array args,
nlua_pushref(lstate, ref);
lua_pushstring(lstate, name);
for (size_t i = 0; i < args.size; i++) {
- nlua_push_Object(lstate, args.items[i]);
+ nlua_push_Object(lstate, args.items[i], false);
}
if (lua_pcall(lstate, (int)args.size+1, retval ? 1 : 0, 0)) {