mirror of
https://github.com/jiangmiao/auto-pairs.git
synced 2025-04-21 20:18:48 +08:00
Fix non-existed key
This commit is contained in:
parent
39f06b873a
commit
fdd0a70826
@ -186,7 +186,9 @@ func! AutoPairsDefine(pairs, ...)
|
||||
let r = AutoPairsDefaultPairs()
|
||||
if a:0 > 0
|
||||
for open in a:1
|
||||
unlet r[open]
|
||||
if has_key(r, open)
|
||||
unlet r[open]
|
||||
end
|
||||
endfor
|
||||
end
|
||||
for [open, close] in items(a:pairs)
|
||||
|
Loading…
x
Reference in New Issue
Block a user