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
else
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()'
" old_cr contain (,I guess the old cr is in expr mode
let is_expr = old_cr =~ '\V('
let wrapper_name = '<SID>AutoPairsOldCRWrapper'
end
end