diff options
author | Christian Clason <c.clason@uni-graz.at> | 2022-08-25 00:49:33 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-25 00:49:33 +0200 |
commit | d3cd79709b6491a5806c67ea52c19f244164954e (patch) | |
tree | 1b696646bf21a68d458038df567d9a2d9dbef349 /runtime/plugin | |
parent | 6b9ff5491d4a15c7ec92d70a769b3cc35ea06da9 (diff) | |
download | rneovim-d3cd79709b6491a5806c67ea52c19f244164954e.tar.gz rneovim-d3cd79709b6491a5806c67ea52c19f244164954e.tar.bz2 rneovim-d3cd79709b6491a5806c67ea52c19f244164954e.zip |
vim-patch:fd999452adaf (#19929)
Update runtime files
https://github.com/vim/vim/commit/fd999452adaf529a30d78844b5fbee355943da29
Diffstat (limited to 'runtime/plugin')
-rw-r--r-- | runtime/plugin/matchparen.vim | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/runtime/plugin/matchparen.vim b/runtime/plugin/matchparen.vim index cc4f38f669..ce2225c5f8 100644 --- a/runtime/plugin/matchparen.vim +++ b/runtime/plugin/matchparen.vim @@ -5,8 +5,7 @@ " Exit quickly when: " - this plugin was already loaded (or disabled) " - when 'compatible' is set -" - the "CursorMoved" autocmd event is not available. -if exists("g:loaded_matchparen") || &cp || !exists("##CursorMoved") +if exists("g:loaded_matchparen") || &cp finish endif let g:loaded_matchparen = 1 @@ -20,7 +19,7 @@ endif augroup matchparen " Replace all matchparen autocommands - autocmd! CursorMoved,CursorMovedI,WinEnter * call s:Highlight_Matching_Pair() + autocmd! CursorMoved,CursorMovedI,WinEnter,WinScrolled * call s:Highlight_Matching_Pair() autocmd! WinLeave * call s:Remove_Matches() if exists('##TextChanged') autocmd! TextChanged,TextChangedI * call s:Highlight_Matching_Pair() |