Skip to content

Commit ec0ec24

Browse files
committed
Don't throw exceptions if no mode is turned on.
1 parent 49b60bd commit ec0ec24

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

autoload/ctrlp.vim

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2562,6 +2562,10 @@ fu! ctrlp#init(type, ...)
25622562
cal s:SetWD(a:0 ? a:1 : {})
25632563
cal s:MapNorms()
25642564
cal s:MapSpecs()
2565+
if empty(g:ctrlp_types) && empty(g:ctrlp_ext_vars)
2566+
call ctrlp#exit()
2567+
retu
2568+
en
25652569
if type(a:type) == 0
25662570
let type = a:type
25672571
el

0 commit comments

Comments
 (0)