diff --git a/plugin/auto-pairs.vim b/plugin/auto-pairs.vim index 5222c48..228bae2 100644 --- a/plugin/auto-pairs.vim +++ b/plugin/auto-pairs.vim @@ -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 = 'AutoPairsOldCRWrapper' end end