diff options
author | Bram Moolenaar <Bram@vim.org> | 2021-07-28 21:48:59 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2021-07-28 21:48:59 +0200 |
commit | 2a4bd00cef1a291059903e26a126b84718e47804 (patch) | |
tree | 1d9fd6cf9330afde47795f0178f68d418586a18b /src/testdir/test_lua.vim | |
parent | 81530e36033dec2c2cd94af6dd48ceb0389e95a2 (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/testdir/test_lua.vim')
-rw-r--r-- | src/testdir/test_lua.vim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/testdir/test_lua.vim b/src/testdir/test_lua.vim index 2f204048f6..c30f9597ea 100644 --- a/src/testdir/test_lua.vim +++ b/src/testdir/test_lua.vim @@ -870,8 +870,8 @@ endfunc " 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) |