0
0
mirror of https://github.com/vim/vim.git synced 2025-10-14 07:04:10 -04:00

patch 8.2.3240: Lua print() does not work properly

Problem:    Lua print() does not work properly.
Solution:   Put back lua_pop().
This commit is contained in:
Bram Moolenaar
2021-07-28 21:48:59 +02:00
parent 81530e3603
commit 2a4bd00cef
3 changed files with 5 additions and 2 deletions

View File

@@ -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)