diff --git a/plugin/auto-pairs.vim b/plugin/auto-pairs.vim index 2c1f6c2..434b10f 100644 --- a/plugin/auto-pairs.vim +++ b/plugin/auto-pairs.vim @@ -190,6 +190,7 @@ func! AutoPairsInsert(key) " check open pairs for [open, close, opt] in b:AutoPairsList let ms = s:matchend(before.a:key, open) + let m = matchstr(afterline, '^\v\s*\V'.close) if len(ms) > 0 " process the open pair @@ -198,6 +199,9 @@ func! AutoPairsInsert(key) " when