mirror of
https://github.com/jiangmiao/auto-pairs.git
synced 2025-04-21 20:18:48 +08:00
Close quote pair properly
This commit is contained in:
parent
67b3606bb7
commit
b85ef9831e
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user