Skip to content

Commit 3866ae1

Browse files
committed
filter with wildignore
1 parent bfa0436 commit 3866ae1

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

autoload/ctrlp.vim

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -434,6 +434,7 @@ if has('patch-8.2-0995')
434434
let entries += map(files, 'e.s:lash.v:val')
435435
endfo
436436
let [dnf, depth] = [ctrlp#dirnfile(entries), a:depth + 1]
437+
if &wig != '' | cal filter(dnf[1], 'glob(v:val) != ""') | en
437438
let g:ctrlp_allfiles += dnf[1]
438439
if !empty(dnf[0]) && !s:maxf(len(g:ctrlp_allfiles)) && depth <= s:maxdepth
439440
sil! cal ctrlp#progress(len(g:ctrlp_allfiles), 1)

0 commit comments

Comments
 (0)