runtime(matchparen): fix :NoMatchParen not working (#14797)

Commit: 
https://github.com/vim/vim/commit/94043780196cc66d23eeec10e2c722c6552324e0
Author: zeertzjq <zeert...@outlook.com>
Date:   Sat May 18 14:55:49 2024 +0800

    runtime(matchparen): fix :NoMatchParen not working 
(https://github.com/vim/vim/issues/14797)
    
    fixes: neovim/neovimhttps://github.com/vim/vim/issues/28828
    
    Signed-off-by: zeertzjq <zeert...@outlook.com>
    Signed-off-by: Christian Brabandt <c...@256bit.org>

diff --git a/runtime/plugin/matchparen.vim b/runtime/plugin/matchparen.vim
index 96c54ee6d..6c061c9fb 100644
--- a/runtime/plugin/matchparen.vim
+++ b/runtime/plugin/matchparen.vim
@@ -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 <b...@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

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to vim_dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/E1s8E37-0093tB-Ii%40256bit.org.

Raspunde prin e-mail lui