Skip to content

Commit 43cc73b

Browse files
authored
Merge pull request #456 from ctrlpvim/fix-many-ctrlp-is-set-to-filetype
Fix filetype is set to multiple ctrlps
2 parents 6037820 + 03c46b1 commit 43cc73b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

autoload/ctrlp.vim

+1-1
Original file line numberDiff line numberDiff line change
@@ -2602,7 +2602,7 @@ fu! s:IsBuiltin()
26022602
endfu
26032603

26042604
fu! s:DetectFileType(type, ft)
2605-
if s:IsBuiltin() || empty(a:ft)
2605+
if s:IsBuiltin() || empty(a:ft) || a:ft ==# 'ctrlp'
26062606
retu 'ctrlp'
26072607
el
26082608
retu 'ctrlp.' . a:ft

0 commit comments

Comments
 (0)