Problem: Lua print() does not work properly.
Solution: Put back lua_pop().
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)
" Test for dealing with strings containing newlines and null character
func Test_lua_string_with_newline()
- let x = execute('lua print("Hello\nWorld")')
- call assert_equal("\nHello\nWorld", x)
+ let x = execute('lua print("Hello\nWorld", 2)')
+ call assert_equal("\nHello\nWorld 2", x)
new
lua k = vim.buffer(vim.eval('bufnr()'))
lua k:insert("Hello\0World", 0)
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 3240,
/**/
3239,
/**/