# HG changeset patch # User Christian Brabandt # Date 1716015608 -7200 # Node ID 57f7c2b32500295c55fa8b82d5b55a0a0c40fb54 # Parent 8cb8025670aa04fe157c873706c6ae99fee2118f runtime(matchparen): fix :NoMatchParen not working (#14797) Commit: https://github.com/vim/vim/commit/94043780196cc66d23eeec10e2c722c6552324e0 Author: zeertzjq 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 Signed-off-by: Christian Brabandt diff --git a/runtime/plugin/matchparen.vim b/runtime/plugin/matchparen.vim --- a/runtime/plugin/matchparen.vim +++ b/runtime/plugin/matchparen.vim @@ -1,6 +1,6 @@ " Vim plugin for showing matching parens " Maintainer: The Vim Project -" Last Change: 2023 Oct 20 +" Last Change: 2024 May 18 " Former Maintainer: Bram Moolenaar " 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