Cut down on the time for the CtrlPFunky check, by first checking if the command exists

This commit is contained in:
w0rp 2017-10-14 17:11:30 +01:00
parent 5204f2dbc2
commit 6fd10f80de
1 changed files with 2 additions and 1 deletions

View File

@ -70,7 +70,8 @@ function! ale#ShouldDoNothing(buffer) abort
endif
" Do nothing from CtrlP buffers with CtrlP-funky.
if getbufvar(a:buffer, '&l:statusline') =~# 'CtrlPMode.*funky'
if exists(':CtrlPFunky') is 2
\&& getbufvar(a:buffer, '&l:statusline') =~# 'CtrlPMode.*funky'
return 1
endif