From a5f9ac7f4303afaebc380ffb1bd0ed2ff3ab9df0 Mon Sep 17 00:00:00 2001 From: Miao Jiang Date: Sun, 31 Mar 2013 12:17:42 +0800 Subject: [PATCH] Fix #46, Incompatible CR mapping with supertab. --- plugin/auto-pairs.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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