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
This commit is contained in:
Sean Dewar
2022-06-07 16:55:32 +01:00
committed by GitHub
parent 057a280867
commit 3cd22a3485
2 changed files with 2 additions and 2 deletions

View File

@@ -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',