Update map expr checking.

This commit is contained in:
Miao Jiang 2013-03-27 16:39:52 +08:00
parent 24ffa783f0
commit 5d713be821

View File

@ -491,8 +491,8 @@ function! AutoPairsTryInit()
let is_expr = 0 let is_expr = 0
else else
let old_cr = s:ExpandMap(old_cr) let old_cr = s:ExpandMap(old_cr)
" old_cr contain (), I guess the old cr is in expr mode " old_cr contain (,I guess the old cr is in expr mode
let is_expr = old_cr =~ '\V()' let is_expr = old_cr =~ '\V('
let wrapper_name = '<SID>AutoPairsOldCRWrapper' let wrapper_name = '<SID>AutoPairsOldCRWrapper'
end end
end end