mirror of
https://github.com/neovim/neovim
synced 2025-07-16 01:01:49 +00:00
vim-patch:17ad852: runtime(doc): update return types for builtin functions
fixes: vim/vim#17273
credit: Github user @msoyka2024
17ad852a62
Co-authored-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
@ -1779,6 +1779,7 @@ M.funcs = {
|
||||
position within a <Tab> or after the last character.
|
||||
Returns 0 when the position could be set, -1 otherwise.
|
||||
|
||||
Returns 0 when the position could be set, -1 otherwise.
|
||||
]=],
|
||||
name = 'cursor',
|
||||
params = { { 'list', 'integer[]' } },
|
||||
@ -2795,6 +2796,7 @@ M.funcs = {
|
||||
]=],
|
||||
name = 'finddir',
|
||||
params = { { 'name', 'string' }, { 'path', 'string' }, { 'count', 'integer' } },
|
||||
returns = 'string|string[]',
|
||||
signature = 'finddir({name} [, {path} [, {count}]])',
|
||||
},
|
||||
findfile = {
|
||||
@ -2810,7 +2812,8 @@ M.funcs = {
|
||||
|
||||
]=],
|
||||
name = 'findfile',
|
||||
params = { { 'name', 'string' }, { 'path', 'string' }, { 'count', 'any' } },
|
||||
params = { { 'name', 'string' }, { 'path', 'string' }, { 'count', 'integer' } },
|
||||
returns = 'string|string[]',
|
||||
signature = 'findfile({name} [, {path} [, {count}]])',
|
||||
},
|
||||
flatten = {
|
||||
@ -9872,6 +9875,7 @@ M.funcs = {
|
||||
call cursor(4, 3)
|
||||
<positions the cursor on the first character '여'.
|
||||
|
||||
Returns 0 when the position could be set, -1 otherwise.
|
||||
]=],
|
||||
name = 'setcursorcharpos',
|
||||
params = { { 'list', 'integer[]' } },
|
||||
|
Reference in New Issue
Block a user