mirror of
https://github.com/neovim/neovim.git
synced 2025-10-26 12:27:24 +00:00
paste: make vim.paste() "public"
This commit is contained in:
@@ -396,7 +396,7 @@ describe('API', function()
|
||||
eq(false, nvim('get_option', 'paste'))
|
||||
end)
|
||||
it('vim.paste() failure', function()
|
||||
nvim('execute_lua', 'vim._paste = (function(lines, phase) error("fake fail") end)', {})
|
||||
nvim('execute_lua', 'vim.paste = (function(lines, phase) error("fake fail") end)', {})
|
||||
expect_err([[Error executing lua: %[string "%<nvim>"]:1: fake fail]],
|
||||
request, 'nvim_paste', 'line 1\nline 2\nline 3', 1)
|
||||
end)
|
||||
|
||||
Reference in New Issue
Block a user