mirror of
https://github.com/neovim/neovim.git
synced 2026-04-20 22:35:33 +00:00
Implement API function to call functions #2979
Remove static modifier from func_call Move MAX_FUNC_ARGS definnition from eval.c to eval.h
This commit is contained in:
committed by
Björn Linse
parent
fb0ebb2a3a
commit
fcb79ffc40
@@ -34,6 +34,15 @@ describe('vim_* functions', function()
|
||||
end)
|
||||
end)
|
||||
|
||||
describe('call_function', function()
|
||||
it('works', function()
|
||||
nvim('call_function', 'setqflist', {{{ filename = 'something', lnum = 17}}, 'r'})
|
||||
eq(17, nvim('call_function', 'getqflist', {})[1].lnum)
|
||||
eq(17, nvim('call_function', 'eval', {17}))
|
||||
eq('foo', nvim('call_function', 'simplify', {'this/./is//redundant/../../../foo'}))
|
||||
end)
|
||||
end)
|
||||
|
||||
describe('strwidth', function()
|
||||
it('works', function()
|
||||
eq(3, nvim('strwidth', 'abc'))
|
||||
|
||||
Reference in New Issue
Block a user