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:
zeertzjq
2025-05-10 07:11:36 +08:00
parent db702782e0
commit 1bfb8dd338
3 changed files with 19 additions and 7 deletions

View File

@@ -1350,6 +1350,8 @@ function vim.fn.cursor(lnum, col, off) end
--- 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.
---
--- @param list integer[]
--- @return any
function vim.fn.cursor(list) end
@@ -2197,7 +2199,7 @@ function vim.fn.filter(expr1, expr2) end
--- @param name string
--- @param path? string
--- @param count? integer
--- @return any
--- @return string|string[]
function vim.fn.finddir(name, path, count) end
--- Just like |finddir()|, but find a file instead of a directory.
@@ -2209,8 +2211,8 @@ function vim.fn.finddir(name, path, count) end
---
--- @param name string
--- @param path? string
--- @param count? any
--- @return any
--- @param count? integer
--- @return string|string[]
function vim.fn.findfile(name, path, count) end
--- Flatten {list} up to {maxdepth} levels. Without {maxdepth}
@@ -8150,6 +8152,8 @@ function vim.fn.setcursorcharpos(lnum, col, off) end
--- call cursor(4, 3)
--- <positions the cursor on the first character '여'.
---
--- Returns 0 when the position could be set, -1 otherwise.
---
--- @param list integer[]
--- @return any
function vim.fn.setcursorcharpos(list) end