Compatible with xmleditor.

This commit is contained in:
Miao Jiang 2013-09-03 16:39:44 +08:00
parent 8f4598b883
commit 8e07c8de31

View File

@ -499,6 +499,9 @@ function! AutoPairsTryInit()
let old_cr = s:ExpandMap(old_cr)
" old_cr contain (, I guess the old cr is in expr mode
let is_expr = old_cr =~ '\V(' && toupper(old_cr) !~ '\V<C-R>'
" The old_cr start with " it must be in expr mode too
let is_expr = is_expr || old_cr =~ '\v^"'
let wrapper_name = '<SID>AutoPairsOldCRWrapper'
end
end