From 0e27b0a9b16ed29dedc7cf2ae6a2e857e8b844ea Mon Sep 17 00:00:00 2001 From: Miao Jiang Date: Tue, 15 Oct 2013 00:19:22 +0800 Subject: [PATCH] Fixes #63, skip checking patch if the version is greater than 703. --- 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 2a3bef7..fb5e6cb 100644 --- a/plugin/auto-pairs.vim +++ b/plugin/auto-pairs.vim @@ -473,7 +473,7 @@ function! AutoPairsTryInit() " Buffer level keys mapping " comptible with other plugin if g:AutoPairsMapCR - if v:version >= 703 && has('patch32') + if v:version == 703 && has('patch32') || v:version > 703 " VIM 7.3 supports advancer maparg which could get info " then auto-pairs could remap in any case. let info = maparg('', 'i', 0, 1) @@ -500,7 +500,7 @@ function! AutoPairsTryInit() " old_cr contain (, I guess the old cr is in expr mode let is_expr = old_cr =~ '\V(' && toupper(old_cr) !~ '\V' - " The old_cr start with " it must be in expr mode too + " The old_cr start with " it must be in expr mode let is_expr = is_expr || old_cr =~ '\v^"' let wrapper_name = 'AutoPairsOldCRWrapper' end