mirror of
https://github.com/neovim/neovim.git
synced 2025-11-14 06:18:50 +00:00
API: TRY_WRAP() for "abort-causing non-exception errors"
- Introduce TRY_WRAP() until we have an *architectural* solution.
- TODO: bfredl idea: prepare error-handling at "top level" (nv_event).
- nvim_paste(): Revert luaeval() hack (see parent commit).
- With TRY_WRAP() in nvim_put(), 'nomodifiable' error now correctly
"bubbles up".
This commit is contained in:
@@ -411,7 +411,7 @@ describe('API', function()
|
||||
end)
|
||||
it("fails if 'nomodifiable'", function()
|
||||
command('set nomodifiable')
|
||||
expect_err([[Buffer is not 'modifiable']], request,
|
||||
expect_err([[Vim:E21: Cannot make changes, 'modifiable' is off]], request,
|
||||
'nvim_put', {'a','b'}, 'l', true, true)
|
||||
end)
|
||||
it('inserts text', function()
|
||||
|
||||
Reference in New Issue
Block a user