mirror of
https://github.com/jiangmiao/auto-pairs.git
synced 2025-04-21 20:18:48 +08:00
allow unicode pairs (like «»)
This commit is contained in:
parent
39f06b873a
commit
7b289ae5c7
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user