mirror of
https://github.com/jiangmiao/auto-pairs.git
synced 2025-04-21 20:18:48 +08:00
Fix AutoPairsJump for custom pairs
By default AutoPairsJump function is hardcoded for default pairs only, so it doesn't work for custom pairs and misses '`' (which is in default AutoPairs). This commit modifies AutoPairsJump function to properly work with custom defined pairs by using b:AutoPairs variable values, so that the function will attempt to search for any closing pair that is configured.
This commit is contained in:
parent
39f06b873a
commit
507ff15ea0
@ -365,7 +365,7 @@ func! AutoPairsFastWrap()
|
||||
endf
|
||||
|
||||
func! AutoPairsJump()
|
||||
call search('["\]'')}]','W')
|
||||
call search('[' . escape(join(values(b:AutoPairs), ''), "']") . ']', 'W')
|
||||
endf
|
||||
|
||||
func! AutoPairsMoveCharacter(key)
|
||||
|
Loading…
x
Reference in New Issue
Block a user