diff options
author | zeertzjq <zeertzjq@outlook.com> | 2022-10-01 21:59:53 +0800 |
---|---|---|
committer | zeertzjq <zeertzjq@outlook.com> | 2022-10-02 07:28:38 +0800 |
commit | cb310d2901a0eb63721ac5930daaadee91929208 (patch) | |
tree | 9fa048c20fb0f182c42c490f0dfa5c8e81ffc082 /runtime | |
parent | 85c7d4f7a92326dcd70317b048bafe96c8051701 (diff) | |
download | rneovim-cb310d2901a0eb63721ac5930daaadee91929208.tar.gz rneovim-cb310d2901a0eb63721ac5930daaadee91929208.tar.bz2 rneovim-cb310d2901a0eb63721ac5930daaadee91929208.zip |
vim-patch:9.0.0622: matchaddpos() can get slow when adding many matches
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)
https://github.com/vim/vim/commit/9f573a8df02d9f699a43d2afbd1d2841d700b9ad
Diffstat (limited to 'runtime')
-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 ba345bf03c..2f44a41699 100644 --- a/runtime/doc/builtin.txt +++ b/runtime/doc/builtin.txt @@ -5010,7 +5010,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 |