mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
test: textlock api error
This commit is contained in:
parent
93ba977793
commit
30ef8c693c
@ -47,6 +47,10 @@ describe('eval-API', function()
|
|||||||
eq('Vim(call):E5555: API call: Invalid buffer id: 17', err)
|
eq('Vim(call):E5555: API call: Invalid buffer id: 17', err)
|
||||||
end)
|
end)
|
||||||
|
|
||||||
|
it('cannot change texts if textlocked', function()
|
||||||
|
command("autocmd TextYankPost <buffer> ++once call nvim_buf_set_lines(0, 0, -1, v:false, [])")
|
||||||
|
eq('Vim(call):E5555: API call: E523: Not allowed here', pcall_err(command, "normal! yy"))
|
||||||
|
end)
|
||||||
|
|
||||||
it("use buffer numbers and windows ids as handles", function()
|
it("use buffer numbers and windows ids as handles", function()
|
||||||
local screen = Screen.new(40, 8)
|
local screen = Screen.new(40, 8)
|
||||||
|
Loading…
Reference in New Issue
Block a user