Fix bug with bare [:]

This commit is contained in:
Andy K. Massimino
2017-11-08 19:22:35 -05:00
parent 88ae011e35
commit f5d5452bfb

View File

@@ -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