Skip to content

Commit

Permalink
Fix filetype is set to multiple ctrlps
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
tacahiroy committed Jun 26, 2018
1 parent 6037820 commit 03c46b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion autoload/ctrlp.vim
Original file line number Diff line number Diff line change
Expand Up @@ -2602,7 +2602,7 @@ fu! s:IsBuiltin()
endfu

fu! s:DetectFileType(type, ft)
if s:IsBuiltin() || empty(a:ft)
if s:IsBuiltin() || empty(a:ft) || a:ft ==# 'ctrlp'
retu 'ctrlp'
el
retu 'ctrlp.' . a:ft
Expand Down

0 comments on commit 03c46b1

Please sign in to comment.