diff options
author | Bram Moolenaar <Bram@vim.org> | 2022-09-29 13:50:08 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-09-29 13:50:08 +0100 |
commit | 9f573a8df02d9f699a43d2afbd1d2841d700b9ad (patch) | |
tree | 8b68307515d0dce34622ef379b11c166a6f2f7d3 /runtime/doc | |
parent | fc06cda8379031890ee8852cdca61eb8af8e1ba2 (diff) | |
download | vim-git-9f573a8df02d9f699a43d2afbd1d2841d700b9ad.tar.gz |
patch 9.0.0622: matchaddpos() can get slow when adding many matchesv9.0.0622
Problem: matchaddpos() can get slow when adding many matches.
Solution: Update the next available match ID when manually picking an ID and
remove check if the available ID can be used. (idea by Rick Howe)
Diffstat (limited to 'runtime/doc')
-rw-r--r-- | runtime/doc/builtin.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/doc/builtin.txt b/runtime/doc/builtin.txt index 81758aff4..e5740a587 100644 --- a/runtime/doc/builtin.txt +++ b/runtime/doc/builtin.txt @@ -5864,7 +5864,7 @@ matchadd({group}, {pattern} [, {priority} [, {id} [, {dict}]]]) respectively. 3 is reserved for use by the |matchparen| plugin. If the {id} argument is not specified or -1, |matchadd()| - automatically chooses a free ID. + automatically chooses a free ID, which is at least 1000. The optional {dict} argument allows for further custom values. Currently this is used to specify a match specific |