From: Christian Brabandt Date: Mon, 21 Apr 2025 09:31:58 +0000 (+0200) Subject: runtime(doc): clarify return type for findfile()/finddir() X-Git-Tag: v9.1.1331~3 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b753d80e59fd1e39eaba6c575310f280ee1370d2;p=thirdparty%2Fvim.git runtime(doc): clarify return type for findfile()/finddir() closes: #17171 Signed-off-by: Christian Brabandt --- diff --git a/runtime/doc/builtin.txt b/runtime/doc/builtin.txt index 7353776f5e..70f3c88e3a 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 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 if {count} is negative, |String| + otherwise flatten({list} [, {maxdepth}]) *flatten()*