Wrap old CR in buffer level.
This commit is contained in:
parent
85a9a7daac
commit
0a79f50acb
@ -474,9 +474,9 @@ function! AutoPairsTryInit()
|
||||
if old_cr !~ 'AutoPairsReturn'
|
||||
let old_cr = s:ExpandMap(old_cr, info['sid'])
|
||||
if info['expr']
|
||||
" remap <expr> to <SID>OldCR to avoid mix expr and non-expr mode
|
||||
" remap <expr> to `name` to avoid mix expr and non-expr mode
|
||||
let name = '<SID>AutoPairsOldCRWrapper'
|
||||
execute 'inoremap <expr> <script> '. name . ' ' . old_cr
|
||||
execute 'inoremap <buffer> <expr> <script> '. name . ' ' . old_cr
|
||||
let old_cr = name
|
||||
end
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user