diff --git a/plugin/auto-pairs.vim b/plugin/auto-pairs.vim index fc27851..2bde174 100644 --- a/plugin/auto-pairs.vim +++ b/plugin/auto-pairs.vim @@ -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' let wrapper_name = 'AutoPairsOldCRWrapper' end end