From: zeertzjq Date: Sat, 18 May 2024 06:55:49 +0000 (+0800) Subject: runtime(matchparen): fix :NoMatchParen not working (#14797) X-Git-Tag: v9.1.0419~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=94043780196cc66d23eeec10e2c722c6552324e0;p=thirdparty%2Fvim.git runtime(matchparen): fix :NoMatchParen not working (#14797) fixes: neovim/neovim#28828 Signed-off-by: zeertzjq Signed-off-by: Christian Brabandt --- diff --git a/runtime/plugin/matchparen.vim b/runtime/plugin/matchparen.vim index 96c54ee6d8..6c061c9fb8 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 -" 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