diff options
author | Bram Moolenaar <Bram@vim.org> | 2013-03-19 13:33:23 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2013-03-19 13:33:23 +0100 |
commit | 186628f67153726edf130015e2a8043a5d309c42 (patch) | |
tree | b78b09433f8bb96b50dc144fac757121f825c297 /runtime | |
parent | 090cfc1b02d5dcd98ba414ccf56e69cc38f272bd (diff) | |
download | vim-git-186628f67153726edf130015e2a8043a5d309c42.tar.gz |
updated for version 7.3.867v7.3.867
Problem: Matchparen does not update match when using auto-indenting.
(Marc Aldorasi)
Solution: Add the TextChanged and TextChangedI autocommand events.
Diffstat (limited to 'runtime')
-rw-r--r-- | runtime/plugin/matchparen.vim | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/runtime/plugin/matchparen.vim b/runtime/plugin/matchparen.vim index 03a428d6a..32f0a8349 100644 --- a/runtime/plugin/matchparen.vim +++ b/runtime/plugin/matchparen.vim @@ -14,6 +14,9 @@ let g:loaded_matchparen = 1 augroup matchparen " Replace all matchparen autocommands autocmd! CursorMoved,CursorMovedI,WinEnter * call s:Highlight_Matching_Pair() + if exists('##TextChanged') + autocmd! TextChanged,TextChangedI * call s:Highlight_Matching_Pair() + endif augroup END " Skip the rest if it was already done. |