From b85ef9831ed065b70a469f96663c01b4057f7fa8 Mon Sep 17 00:00:00 2001 From: Miao Jiang Date: Fri, 25 Jan 2019 01:09:42 +0800 Subject: [PATCH] Close quote pair properly --- 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 434b10f..7ee07a7 100644 --- a/plugin/auto-pairs.vim +++ b/plugin/auto-pairs.vim @@ -190,7 +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) + let m = matchstr(afterline, '^\v\s*\zs\V'.close) if len(ms) > 0 " process the open pair