From 3cd22a34852b7453eecb4715806cc09dcc226e0c Mon Sep 17 00:00:00 2001 From: Sean Dewar Date: Tue, 7 Jun 2022 16:55:32 +0100 Subject: fix(eval/f_getmatches): return empty list for invalid win argument (#18893) Slight inaccuracy in v8.1.1084's port. Like Vim, it should return [], not 0. Ref #18890 --- runtime/doc/builtin.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'runtime') diff --git a/runtime/doc/builtin.txt b/runtime/doc/builtin.txt index 7f7b92d250..f63525242f 100644 --- a/runtime/doc/builtin.txt +++ b/runtime/doc/builtin.txt @@ -3214,7 +3214,7 @@ getmatches([{win}]) *getmatches()* |getmatches()|. If {win} is specified, use the window with this number or window ID instead of the current window. If {win} is invalid, - `0` is returned. + an empty list is returned. Example: > :echo getmatches() < [{'group': 'MyGroup1', 'pattern': 'TODO', -- cgit