comparison runtime/plugin/matchparen.vim @ 4232:0fcb050fd79d v7.3.867

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.
author Bram Moolenaar <bram@vim.org>
date Tue, 19 Mar 2013 13:33:23 +0100
parents 3502a7f991fc
children edd0bc1f26bd
comparison
equal deleted inserted replaced
4231:1ad8b8becf2a 4232:0fcb050fd79d
12 let g:loaded_matchparen = 1 12 let g:loaded_matchparen = 1
13 13
14 augroup matchparen 14 augroup matchparen
15 " Replace all matchparen autocommands 15 " Replace all matchparen autocommands
16 autocmd! CursorMoved,CursorMovedI,WinEnter * call s:Highlight_Matching_Pair() 16 autocmd! CursorMoved,CursorMovedI,WinEnter * call s:Highlight_Matching_Pair()
17 if exists('##TextChanged')
18 autocmd! TextChanged,TextChangedI * call s:Highlight_Matching_Pair()
19 endif
17 augroup END 20 augroup END
18 21
19 " Skip the rest if it was already done. 22 " Skip the rest if it was already done.
20 if exists("*s:Highlight_Matching_Pair") 23 if exists("*s:Highlight_Matching_Pair")
21 finish 24 finish