mirror of
https://github.com/neovim/neovim.git
synced 2025-10-26 12:27:24 +00:00
Merge branch 'master' into luaviml'/lua
This commit is contained in:
@@ -31,7 +31,7 @@ describe('luaeval(vim.api.…)', function()
|
||||
describe('with errors', function()
|
||||
it('transforms API error from nvim_buf_set_lines into lua error', function()
|
||||
funcs.setline(1, {"abc", "def", "a\nb", "ttt"})
|
||||
eq({false, 'string cannot contain newlines'},
|
||||
eq({false, 'String cannot contain newlines'},
|
||||
funcs.luaeval('{pcall(vim.api.nvim_buf_set_lines, 1, 1, 2, false, {"b\\na"})}'))
|
||||
end)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user