allow unicode pairs (like «»)

This commit is contained in:
grenzionky 2020-02-25 00:46:32 -05:00 committed by GitHub
parent 39f06b873a
commit 7b289ae5c7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -491,8 +491,8 @@ func! AutoPairsInit()
" m - close key jumps through multi line
" s - close key jumps only in the same line
for [open, close] in items(b:AutoPairs)
let o = open[-1:-1]
let c = close[0]
let o = open
let c = close
let opt = {'mapclose': 1, 'multiline':1}
let opt['key'] = c
if o == c