mirror of
https://github.com/jiangmiao/auto-pairs.git
synced 2025-10-29 23:04:03 +08:00
Comptabile with <CR> <Plug>() mapping, fix #245
This commit is contained in:
@ -596,6 +596,7 @@ endf
|
|||||||
func! s:ExpandMap(map)
|
func! s:ExpandMap(map)
|
||||||
let map = a:map
|
let map = a:map
|
||||||
let map = substitute(map, '\(<Plug>\w\+\)', '\=maparg(submatch(1), "i")', 'g')
|
let map = substitute(map, '\(<Plug>\w\+\)', '\=maparg(submatch(1), "i")', 'g')
|
||||||
|
let map = substitute(map, '\(<Plug>([^)]*)\)', '\=maparg(submatch(1), "i")', 'g')
|
||||||
return map
|
return map
|
||||||
endf
|
endf
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user