updated for version 7.3.867

Problem:    Matchparen does not update match when using auto-indenting.
            (Marc Aldorasi)
Solution:   Add the TextChanged and TextChangedI autocommand events.
This commit is contained in:
Bram Moolenaar
2013-03-19 13:33:23 +01:00
parent 090cfc1b02
commit 186628f671
8 changed files with 60 additions and 1 deletions

View File

@ -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.