mirror of
				https://github.com/jiangmiao/auto-pairs.git
				synced 2025-10-30 09:44:01 +08:00 
			
		
		
		
	Close quote pair properly
This commit is contained in:
		| @ -190,7 +190,7 @@ func! AutoPairsInsert(key) | |||||||
|   " check open pairs |   " check open pairs | ||||||
|   for [open, close, opt] in b:AutoPairsList |   for [open, close, opt] in b:AutoPairsList | ||||||
|     let ms = s:matchend(before.a:key, open) |     let ms = s:matchend(before.a:key, open) | ||||||
|     let m = matchstr(afterline, '^\v\s*\V'.close) |     let m = matchstr(afterline, '^\v\s*\zs\V'.close) | ||||||
|     if len(ms) > 0 |     if len(ms) > 0 | ||||||
|       " process the open pair |       " process the open pair | ||||||
|        |        | ||||||
|  | |||||||
		Reference in New Issue
	
	Block a user
	 Miao Jiang
					Miao Jiang