aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorTakahiro Yoshihara2018-04-09 11:06:46 +0900
committerTakahiro Yoshihara2018-04-09 11:06:46 +0900
commit05bc7b676ced4d29cd0ca4c6a6688b55e97458f7 (patch)
treedb0b206a67d7207a1e27c8131d564c42f3f72e3f
parentc13c1249fd3bf99c44eb80dfabd7eb7ea0fe09bd (diff)
downloadctrlp.vim-fix-416.tar.gz

Fix to respect case for file names

fix-416

Fix issue #416

-rw-r--r--autoload/ctrlp.vim4
1 files changed, 2 insertions, 2 deletions
diff --git a/autoload/ctrlp.vim b/autoload/ctrlp.vim
index 8988b03..4a56662 100644
--- a/autoload/ctrlp.vim
+++ b/autoload/ctrlp.vim
@@ -563,7 +563,7 @@ fu! s:MatchIt(items, pat, limit, exc)
for item in a:items
let id += 1
try
- if (s:matchcrfile || !( s:ispath && item == a:exc )) &&
+ if (s:matchcrfile || !( s:ispath && item ==# a:exc )) &&
\call(s:mfunc, [item, pat]) >= 0
cal add(lines, item)
en
@@ -1956,7 +1956,7 @@ endf
fu! s:dictindex(dict, expr)
for key in keys(a:dict)
- if a:dict[key] == a:expr | retu key | en
+ if a:dict[key] ==# a:expr | retu key | en
endfo
retu -1
endf