Skip to content

Commit 70ef32e

Browse files
committed
Fix search the type
1 parent da3a72a commit 70ef32e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

autoload/ctrlp.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2469,7 +2469,7 @@ endf
24692469
" Returns [lname, sname]
24702470
fu! s:CurTypeName()
24712471
if s:itemtype < len(s:coretypes)
2472-
return s:coretypes[s:itemtype]
2472+
return filter(copy(s:coretypes), 'v:val[1]==g:ctrlp_types[s:itemtype]')[0][1]
24732473
el
24742474
return [s:getextvar("lname"), s:getextvar('sname')]
24752475
en

0 commit comments

Comments
 (0)