File plugin/inccomplete.vim changed (mode: 100644) (index 3c606ea..ab9ac54) |
... |
... |
function! s:ICFindIncludes(user, pathlst) |
415 |
415 |
|
|
416 |
416 |
" prepare a:pathlst by forming regexps |
" prepare a:pathlst by forming regexps |
417 |
417 |
for l:i in range(len(a:pathlst)) |
for l:i in range(len(a:pathlst)) |
418 |
|
if a:pathlst[i][-1:] == '/' |
|
419 |
|
let a:pathlst[i] = a:pathlst[i][:-2] |
|
|
418 |
|
let l:path = a:pathlst[i] |
|
419 |
|
if l:path[-1:] == '/' |
|
420 |
|
let l:path = l:path[:-2] |
420 |
421 |
endif |
endif |
421 |
|
let g:inccomplete_cache[a:pathlst[i]] = [] |
|
422 |
|
let l:tmp = substitute(a:pathlst[i], '\', '/', 'g') |
|
423 |
|
let a:pathlst[i] = [a:pathlst[i], '^'.escape(l:tmp, '.')] |
|
|
422 |
|
let g:inccomplete_cache[l:path] = [] |
|
423 |
|
let l:tmp = substitute(l:path, '\', '/', 'g') |
|
424 |
|
let a:pathlst[i] = [l:path, '^'.escape(l:tmp, '.')] |
424 |
425 |
endfor |
endfor |
425 |
426 |
|
|
426 |
427 |
" process the results of find |
" process the results of find |