]> git.ipfire.org Git - thirdparty/vim.git/commit
matchparen: do not use hard-coded match id (#13393)
authorChristian Brabandt <cb@256bit.org>
Sat, 21 Oct 2023 09:06:50 +0000 (11:06 +0200)
committerGitHub <noreply@github.com>
Sat, 21 Oct 2023 09:06:50 +0000 (11:06 +0200)
commitd3e277f279ed628809eb6857ea3ebcfca566ca2a
treeb478c1a9efc785bd1e2ebcabdab0d9a173f0d1be
parent47416d1a7441f8c815438903e78ba0a2d877699e
matchparen: do not use hard-coded match id (#13393)

* matchparen: do not use hard-coded match id

Instead of using the hard-coded match id 3, which may also be used by
other plugins, let the matchparen plugin use whatever ids are
automatically returned when calling matchaddpos().

For backwards-compatibility, keep the `:3match` call, which will still
use the hard-coded id 3 (as mentioned in :h :3match).

closes: #13381

Signed-off-by: Christian Brabandt <cb@256bit.org>
runtime/doc/pattern.txt
runtime/plugin/matchparen.vim