Fix #46, Incompatible CR mapping with supertab.

This commit is contained in:
Miao Jiang 2013-03-31 12:17:42 +08:00
parent 37076cb15f
commit a5f9ac7f43

View File

@ -492,7 +492,7 @@ function! AutoPairsTryInit()
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('
let is_expr = old_cr =~ '\V(' && toupper(old_cr) !~ '\V<C-R>'
let wrapper_name = '<SID>AutoPairsOldCRWrapper'
end
end