mirror of
https://github.com/neovim/neovim.git
synced 2025-10-21 17:21:49 +00:00
api: consistently use nvim_ prefix and update documentation
This commit is contained in:
@@ -7,6 +7,7 @@ local ok, nvim_async, feed = helpers.ok, helpers.nvim_async, helpers.feed
|
||||
local os_name = helpers.os_name
|
||||
local meths = helpers.meths
|
||||
local funcs = helpers.funcs
|
||||
local request = helpers.request
|
||||
|
||||
describe('vim_* functions', function()
|
||||
before_each(clear)
|
||||
@@ -41,6 +42,10 @@ describe('vim_* functions', function()
|
||||
eq(1, nvim('eval',"matcharg(1) == ['', '']"))
|
||||
eq({'', ''}, nvim('eval','matcharg(1)'))
|
||||
end)
|
||||
|
||||
it('works under deprecated name', function()
|
||||
eq(2, request("vim_eval", "1+1"))
|
||||
end)
|
||||
end)
|
||||
|
||||
describe('call_function', function()
|
||||
|
Reference in New Issue
Block a user