From 5d713be8212cc151444fae9ed0d49b44b739c82a Mon Sep 17 00:00:00 2001 From: Miao Jiang Date: Wed, 27 Mar 2013 16:39:52 +0800 Subject: [PATCH] Update map expr checking. --- plugin/auto-pairs.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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