From 559113fa2a55d25538338407f686a88510f10189 Mon Sep 17 00:00:00 2001 From: "jiangfriend@gmail.com" Date: Thu, 5 Jul 2012 14:40:41 +0800 Subject: [PATCH] fixes #18 compatible with clang_complete --- plugin/auto-pairs.vim | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/plugin/auto-pairs.vim b/plugin/auto-pairs.vim index 3f1ce8b..235e165 100644 --- a/plugin/auto-pairs.vim +++ b/plugin/auto-pairs.vim @@ -1,8 +1,8 @@ " Insert or delete brackets, parens, quotes in pairs. " Maintainer: JiangMiao " Contributor: camthompson -" Last Change: 2012-05-16 -" Version: 1.2.2 +" Last Change: 2012-07-05 +" Version: 1.2.3 " Homepage: http://www.vim.org/scripts/script.php?script_id=3599 " Repository: https://github.com/jiangmiao/auto-pairs @@ -380,6 +380,14 @@ function! AutoPairsForceInit() let old_cr = s:ExpandMap(old_cr) endif + " compatible with clang_complete + " https://github.com/jiangmiao/auto-pairs/issues/18 + let pattern = '\d\+_HandlePossibleSelectionEnter()' + if old_cr =~ pattern + execute 'imap