summaryrefslogtreecommitdiffstats
path: root/src/if_lua.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2021-07-28 21:48:59 +0200
committerBram Moolenaar <Bram@vim.org>2021-07-28 21:48:59 +0200
commit2a4bd00cef1a291059903e26a126b84718e47804 (patch)
tree1d9fd6cf9330afde47795f0178f68d418586a18b /src/if_lua.c
parent81530e36033dec2c2cd94af6dd48ceb0389e95a2 (diff)
patch 8.2.3240: Lua print() does not work properlyv8.2.3240
Problem: Lua print() does not work properly. Solution: Put back lua_pop().
Diffstat (limited to 'src/if_lua.c')
-rw-r--r--src/if_lua.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/if_lua.c b/src/if_lua.c
index 79fb68168b..5810401633 100644
--- a/src/if_lua.c
+++ b/src/if_lua.c
@@ -1737,6 +1737,7 @@ luaV_print(lua_State *L)
if (i > 1)
luaL_addchar(&b, ' '); // use space instead of tab
luaV_addlstring(&b, s, l, 0);
+ lua_pop(L, 1);
}
luaL_pushresult(&b);
if (!got_int)