commit | 2a4bd00cef1a291059903e26a126b84718e47804 | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Wed Jul 28 21:48:59 2021 +0200 |
committer | Bram Moolenaar <Bram@vim.org> | Wed Jul 28 21:48:59 2021 +0200 |
tree | 1d9fd6cf9330afde47795f0178f68d418586a18b | |
parent | 81530e36033dec2c2cd94af6dd48ceb0389e95a2 [diff] [blame] |
patch 8.2.3240: Lua print() does not work properly Problem: Lua print() does not work properly. Solution: Put back lua_pop().
diff --git a/src/if_lua.c b/src/if_lua.c index 79fb681..5810401 100644 --- a/src/if_lua.c +++ b/src/if_lua.c
@@ -1737,6 +1737,7 @@ 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)