We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6fc97de commit 8afb0aaCopy full SHA for 8afb0aa
1 file changed
autoload/ctrlp.vim
@@ -2348,7 +2348,8 @@ endf
2348
fu! s:buildpat(lst)
2349
let pat = a:lst[0]
2350
for item in range(1, len(a:lst) - 1)
2351
- let pat .= '[^'.a:lst[item - 1].']\{-}'.a:lst[item]
+ let c = a:lst[item - 1]
2352
+ let pat .= (c == '/' ? '[^/]\{-}' : '[^'.c.'/]\{-}').a:lst[item]
2353
endfo
2354
retu pat
2355
endf
0 commit comments