Fix non-existed key

This commit is contained in:
Hanh Le 2020-07-13 19:54:42 +07:00
parent 39f06b873a
commit fdd0a70826

View File

@ -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)