mirror of
https://github.com/jiangmiao/auto-pairs.git
synced 2025-10-05 05:27:10 +08:00
silent the <CR> mapping forcely
This commit is contained in:
@ -352,7 +352,10 @@ function! AutoPairsForceInit()
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
if old_cr !~ 'AutoPairsReturn'
|
if old_cr !~ 'AutoPairsReturn'
|
||||||
execute 'imap <buffer> <CR> '.old_cr.'<SID>AutoPairsReturn'
|
" generally speaking, <silent> should not be here because every plugin
|
||||||
|
" has there own silent solution. but for some plugin which wasn't double silent
|
||||||
|
" mapping, when maparg expand the map will lose the silent info, so <silent> always.
|
||||||
|
execute 'imap <buffer> <silent> <CR> '.old_cr.'<SID>AutoPairsReturn'
|
||||||
end
|
end
|
||||||
endif
|
endif
|
||||||
call AutoPairsInit()
|
call AutoPairsInit()
|
||||||
|
Reference in New Issue
Block a user