File plugin/inccomplete.vim changed (mode: 100644) (index 5364d32..c588fbb) |
1 |
1 |
" Name: inccomplete |
" Name: inccomplete |
2 |
2 |
" Author: xaizek <xaizek@posteo.net> |
" Author: xaizek <xaizek@posteo.net> |
3 |
|
" Version: 1.8.47 |
|
|
3 |
|
" Version: 1.8.48 |
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) |
318 |
318 |
let l:cutidx = - (l:pos + 2) |
let l:cutidx = - (l:pos + 2) |
319 |
319 |
if !empty(l:inclst) && l:inclst[0][0][l:cutidx + 1:] != l:dirend0 |
if !empty(l:inclst) && l:inclst[0][0][l:cutidx + 1:] != l:dirend0 |
320 |
320 |
\ && a:user |
\ && a:user |
321 |
|
let l:path = s:ICGetDir() |
|
322 |
|
call map(l:inclst, '[l:path, l:dirend0.v:val[1]]') |
|
|
321 |
|
let l:dir = s:ICGetDir() |
|
322 |
|
let l:path = s:ICChosp(fnamemodify(l:dir.'/'.l:dirend0, ':p')) |
|
323 |
|
call map(l:inclst, '[ v:val[0] == l:path ? l:dir : v:val[0][:l:cutidx],' |
|
324 |
|
\.' l:dirend0.v:val[1] ]') |
323 |
325 |
else |
else |
324 |
326 |
call map(l:inclst, '[v:val[0][:l:cutidx], l:dirend0.v:val[1]]') |
call map(l:inclst, '[v:val[0][:l:cutidx], l:dirend0.v:val[1]]') |
325 |
327 |
endif |
endif |