File plugin/inccomplete.vim changed (mode: 100644) (index 8692190..965d0aa) |
1 |
1 |
" Name: inccomplete |
" Name: inccomplete |
2 |
2 |
" Author: xaizek <xaizek@posteo.net> |
" Author: xaizek <xaizek@posteo.net> |
3 |
|
" Version: 1.7.46 |
|
|
3 |
|
" Version: 1.7.47 |
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) |
292 |
292 |
" filter by subdirectory name |
" filter by subdirectory name |
293 |
293 |
let l:dirend0 = a:base[:l:pos] |
let l:dirend0 = a:base[:l:pos] |
294 |
294 |
if a:user |
if a:user |
295 |
|
let l:dirend1 = fnamemodify(a:dir.'/'.l:dirend0, ':p') |
|
|
295 |
|
let l:dirend1 = fnamemodify(s:ICChosp(a:dir).'/'.l:dirend0, ':p') |
296 |
296 |
else |
else |
297 |
297 |
let l:dirend1 = l:dirend0 |
let l:dirend1 = l:dirend0 |
298 |
298 |
endif |
endif |
|
... |
... |
function! s:ICFilter(user, inclst, base, dir) |
324 |
324 |
return l:inclst |
return l:inclst |
325 |
325 |
endfunction |
endfunction |
326 |
326 |
|
|
|
327 |
|
" drops all trailing slashes from path |
|
328 |
|
function! s:ICChosp(path) |
|
329 |
|
let l:path = a:path |
|
330 |
|
while len(l:path) > 1 && (l:path[-1:] == '/' || l:path[-1:] == '\') |
|
331 |
|
let l:path = l:path[:-2] |
|
332 |
|
endwhile |
|
333 |
|
return l:path |
|
334 |
|
endfunction |
|
335 |
|
|
327 |
336 |
" searches for files that can be included in path |
" searches for files that can be included in path |
328 |
337 |
" a:user determines search area, when it's not zero look only in '.', otherwise |
" a:user determines search area, when it's not zero look only in '.', otherwise |
329 |
338 |
" everywhere in path except '.' |
" everywhere in path except '.' |