escaping the tilde ~

This commit is contained in:
Kien N 2011-09-10 04:05:26 +07:00
parent 309edd4c40
commit 7a9425c6c3

View File

@ -237,6 +237,8 @@ func! s:GetMatchedItems(items, pats, limit) "{{{
if len(items) >= s:mltipats_lim
let pats = [pats[-1]]
endif
" pesky little tilde
cal map(pats, 'substitute(v:val, "\\\~", "\\\\\\~", "g")')
" loop through the patterns
for each in pats
if exists('newitems') && len(newitems) < limit