Skip to content

Commit 4b9e7ca

Browse files
tacahiroymattn
authored andcommitted
Fix to respect case for file names
Fix issue #416
1 parent c13c124 commit 4b9e7ca

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

autoload/ctrlp.vim

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -563,7 +563,7 @@ fu! s:MatchIt(items, pat, limit, exc)
563563
for item in a:items
564564
let id += 1
565565
try
566-
if (s:matchcrfile || !( s:ispath && item == a:exc )) &&
566+
if (s:matchcrfile || !( s:ispath && item ==# a:exc )) &&
567567
\call(s:mfunc, [item, pat]) >= 0
568568
cal add(lines, item)
569569
en
@@ -1956,7 +1956,7 @@ endf
19561956

19571957
fu! s:dictindex(dict, expr)
19581958
for key in keys(a:dict)
1959-
if a:dict[key] == a:expr | retu key | en
1959+
if a:dict[key] ==# a:expr | retu key | en
19601960
endfo
19611961
retu -1
19621962
endf

0 commit comments

Comments
 (0)