Update auto-pairs.vim

support nvim >= 9 version
This commit is contained in:
Farrel Nikoson 2024-07-08 16:58:18 +07:00 committed by GitHub
parent 39f06b873a
commit 1a8be02cbd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -627,7 +627,7 @@ func! AutoPairsTryInit()
let old_cr = '<CR>'
let is_expr = 0
else
let old_cr = info['rhs']
let old_cr = '<CR>'
let old_cr = s:ExpandMap(old_cr)
let old_cr = substitute(old_cr, '<SID>', '<SNR>' . info['sid'] . '_', 'g')
let is_expr = info['expr']