Skip to content

Commit 03c46b1

Browse files
committed
Fix filetype is set to multiple ctrlps
The problem is: 1. filetype is 'ctrlp' 2. invoking an extension and it doesn't set filetype 3. then filetype is set to 'ctrlp.ctrlp' The filetype should be just 'ctrlp' in this case.
1 parent 6037820 commit 03c46b1

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
@@ -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)