From 81a4a9fe5b99d357462798610e295d0a314bf380 Mon Sep 17 00:00:00 2001 From: Phillip Vo Date: Fri, 18 Jan 2019 23:40:08 -0500 Subject: [PATCH] Allow removeOpenPairList's with a single element in AutoPairsDefine function --- 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 ee63471..d06796c 100644 --- a/plugin/auto-pairs.vim +++ b/plugin/auto-pairs.vim @@ -159,7 +159,7 @@ endf " add pair and remove '{' for html file func! AutoPairsDefine(pairs, ...) let r = copy(g:AutoPairs) - if a:0 > 1 + if a:0 > 0 for open in a:1 unlet r[open] endfor