comparison src/if_lua.c @ 25407:241d26b17192 v8.2.3240

patch 8.2.3240: Lua print() does not work properly Commit: https://github.com/vim/vim/commit/2a4bd00cef1a291059903e26a126b84718e47804 Author: Bram Moolenaar <Bram@vim.org> Date: Wed Jul 28 21:48:59 2021 +0200 patch 8.2.3240: Lua print() does not work properly Problem: Lua print() does not work properly. Solution: Put back lua_pop().
author Bram Moolenaar <Bram@vim.org>
date Wed, 28 Jul 2021 22:00:05 +0200
parents 3a8b61b31724
children 02d1b2817585
comparison
equal deleted inserted replaced
25406:54392bb0e0ed 25407:241d26b17192
1735 if (s == NULL) 1735 if (s == NULL)
1736 return luaL_error(L, "cannot convert to string"); 1736 return luaL_error(L, "cannot convert to string");
1737 if (i > 1) 1737 if (i > 1)
1738 luaL_addchar(&b, ' '); // use space instead of tab 1738 luaL_addchar(&b, ' '); // use space instead of tab
1739 luaV_addlstring(&b, s, l, 0); 1739 luaV_addlstring(&b, s, l, 0);
1740 lua_pop(L, 1);
1740 } 1741 }
1741 luaL_pushresult(&b); 1742 luaL_pushresult(&b);
1742 if (!got_int) 1743 if (!got_int)
1743 luaV_msg(L); 1744 luaV_msg(L);
1744 return 0; 1745 return 0;