Commit: runtime(doc): clarify return type for findfile()/finddir()

2 views
Skip to first unread message

Christian Brabandt

unread,
Apr 21, 2025, 5:45:12 AM4/21/25
to vim...@googlegroups.com
runtime(doc): clarify return type for findfile()/finddir()

Commit: https://github.com/vim/vim/commit/b753d80e59fd1e39eaba6c575310f280ee1370d2
Author: Christian Brabandt <c...@256bit.org>
Date: Mon Apr 21 11:31:58 2025 +0200

runtime(doc): clarify return type for findfile()/finddir()

closes: https://github.com/vim/vim/issues/17171

Signed-off-by: Christian Brabandt <c...@256bit.org>

diff --git a/runtime/doc/builtin.txt b/runtime/doc/builtin.txt
index 7353776f5..70f3c88e3 100644
--- a/runtime/doc/builtin.txt
+++ b/runtime/doc/builtin.txt
@@ -3260,7 +3260,8 @@ finddir({name} [, {path} [, {count}]]) *finddir()*
Can also be used as a |method|: >
GetName()->finddir()
<
- Return type: |String|
+ Return type: list<string> if {count} is negative, |String|
+ otherwise


findfile({name} [, {path} [, {count}]]) *findfile()*
@@ -3274,7 +3275,8 @@ findfile({name} [, {path} [, {count}]]) *findfile()*
Can also be used as a |method|: >
GetName()->findfile()
<
- Return type: |String|
+ Return type: list<string> if {count} is negative, |String|
+ otherwise


flatten({list} [, {maxdepth}]) *flatten()*
Reply all
Reply to author
Forward
0 new messages