Skip to content

Commit 8afb0aa

Browse files
committed
fix fuzzy filter
Close #265
1 parent 6fc97de commit 8afb0aa

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

autoload/ctrlp.vim

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2348,7 +2348,8 @@ endf
23482348
fu! s:buildpat(lst)
23492349
let pat = a:lst[0]
23502350
for item in range(1, len(a:lst) - 1)
2351-
let pat .= '[^'.a:lst[item - 1].']\{-}'.a:lst[item]
2351+
let c = a:lst[item - 1]
2352+
let pat .= (c == '/' ? '[^/]\{-}' : '[^'.c.'/]\{-}').a:lst[item]
23522353
endfo
23532354
retu pat
23542355
endf

0 commit comments

Comments
 (0)