summaryrefslogtreecommitdiff
path: root/runtime/plugin
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2013-03-19 13:33:23 +0100
committerBram Moolenaar <Bram@vim.org>2013-03-19 13:33:23 +0100
commit186628f67153726edf130015e2a8043a5d309c42 (patch)
treeb78b09433f8bb96b50dc144fac757121f825c297 /runtime/plugin
parent090cfc1b02d5dcd98ba414ccf56e69cc38f272bd (diff)
downloadvim-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/plugin')
-rw-r--r--runtime/plugin/matchparen.vim3
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.