]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
runtime(matchparen): fix :NoMatchParen not working (#14797)
authorzeertzjq <zeertzjq@outlook.com>
Sat, 18 May 2024 06:55:49 +0000 (14:55 +0800)
committerGitHub <noreply@github.com>
Sat, 18 May 2024 06:55:49 +0000 (08:55 +0200)
fixes: neovim/neovim#28828

Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
runtime/plugin/matchparen.vim

index 96c54ee6d8a8830a857797ec65f7b13504f693bf..6c061c9fb8d4d74d80b9e73fe73b4088f2dad02c 100644 (file)
@@ -1,6 +1,6 @@
 " Vim plugin for showing matching parens
 " Maintainer:  The Vim Project <https://github.com/vim/vim>
-" Last Change: 2023 Oct 20
+" Last Change: 2024 May 18
 " Former Maintainer:   Bram Moolenaar <Bram@vim.org>
 
 " Exit quickly when:
@@ -218,7 +218,7 @@ command NoMatchParen call s:NoMatchParen()
 
 func s:NoMatchParen()
   let w = winnr()
-  noau windo silent! call matchdelete(3)
+  noau windo call s:Remove_Matches()
   unlet! g:loaded_matchparen
   exe "noau ". w . "wincmd w"
   au! matchparen