aboutsummaryrefslogtreecommitdiff
path: root/runtime
diff options
context:
space:
mode:
authorSean Dewar <seandewar@users.noreply.github.com>2022-06-07 16:55:32 +0100
committerGitHub <noreply@github.com>2022-06-07 16:55:32 +0100
commit3cd22a34852b7453eecb4715806cc09dcc226e0c (patch)
tree4adc411be45042e7bb976d39312a97f5c2e2f80a /runtime
parent057a280867be6b4edefb1d5fb959f0aa71e7c1a5 (diff)
downloadrneovim-3cd22a34852b7453eecb4715806cc09dcc226e0c.tar.gz
rneovim-3cd22a34852b7453eecb4715806cc09dcc226e0c.tar.bz2
rneovim-3cd22a34852b7453eecb4715806cc09dcc226e0c.zip
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
Diffstat (limited to 'runtime')
-rw-r--r--runtime/doc/builtin.txt2
1 files changed, 1 insertions, 1 deletions
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',