mirror of
https://github.com/chenasraf/vim-matchup.git
synced 2026-05-18 01:38:57 +00:00
Fix bug with bare [:]
This commit is contained in:
@@ -712,6 +712,12 @@ function! s:init_delim_lists() " {{{1
|
||||
" do not duplicate whole groups of match words
|
||||
let l:seen = {}
|
||||
for l:s in l:sets
|
||||
" very special case, escape bare [:]
|
||||
" TODO: the bare [] bug might show up in other places too
|
||||
if l:s ==# '[:]'
|
||||
let l:s = '\[:\]'
|
||||
endif
|
||||
|
||||
if has_key(l:seen, l:s) | continue | endif
|
||||
let l:seen[l:s] = 1
|
||||
|
||||
|
||||
Reference in New Issue
Block a user