Skip to content

Commit 27b6f15

Browse files
committed
Support ctrlp_custom_ignore as function ref
1 parent 3532f98 commit 27b6f15

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

autoload/ctrlp.vim

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1527,13 +1527,17 @@ endf
15271527

15281528
fu! s:usrign(item, type)
15291529
if s:igntype == 1 | retu a:item =~ s:usrign | end
1530-
if s:igntype == 4
1530+
if s:igntype == 2
1531+
if call(s:usrign, [a:item, a:type])
1532+
retu 1
1533+
end
1534+
elsei s:igntype == 4
15311535
if has_key(s:usrign, a:type) && s:usrign[a:type] != ''
15321536
\ && a:item =~ s:usrign[a:type]
15331537
retu 1
15341538
elsei has_key(s:usrign, 'func') && s:usrign['func'] != ''
15351539
\ && call(s:usrign['func'], [a:item, a:type])
1536-
retur 1
1540+
retu 1
15371541
end
15381542
end
15391543
retu 0

0 commit comments

Comments
 (0)