File plugin/inccomplete.vim changed (mode: 100644) (index d87b171..5aea5bd) |
1 |
1 |
" Name: inccomplete |
" Name: inccomplete |
2 |
2 |
" Author: xaizek <xaizek@openmailbox.org> |
" Author: xaizek <xaizek@openmailbox.org> |
3 |
|
" Version: 1.7.41 |
|
|
3 |
|
" Version: 1.7.42 |
4 |
4 |
" License: Same terms as Vim itself (see :help license) |
" License: Same terms as Vim itself (see :help license) |
5 |
5 |
" |
" |
6 |
6 |
" See :help inccomplete for documentation. |
" See :help inccomplete for documentation. |
|
... |
... |
function! s:ICFilter(user, inclst, base, dir) |
297 |
297 |
let l:dirend2 = escape(l:dirend1, '\') |
let l:dirend2 = escape(l:dirend1, '\') |
298 |
298 |
endif |
endif |
299 |
299 |
if a:user |
if a:user |
|
300 |
|
" filter items by full path, leave only exact matches or direct children |
|
301 |
|
" (match full pattern or have at most one more trailing path entry) |
300 |
302 |
call filter( |
call filter( |
301 |
|
\ l:inclst, |
|
302 |
|
\ 'v:val[0]."/".v:val[1] =~ "^".l:dirend2."\\($\\|[\\/]*.*\\)"') |
|
|
303 |
|
\ l:inclst, |
|
304 |
|
\ 'v:val[0]."/".v:val[1] =~ "^".l:dirend2."\\($\\|[\\/]*[^\\/]*$\\)"') |
303 |
305 |
else |
else |
304 |
306 |
call filter(l:inclst, 'v:val[0] =~ "'.l:sl1.'".l:dirend2."\\?$"') |
call filter(l:inclst, 'v:val[0] =~ "'.l:sl1.'".l:dirend2."\\?$"') |
305 |
307 |
endif |
endif |