summaryrefslogtreecommitdiff
path: root/autoload
diff options
context:
space:
mode:
authorw0rp <devw0rp@gmail.com>2017-10-14 17:11:30 +0100
committerw0rp <devw0rp@gmail.com>2017-10-14 17:11:30 +0100
commit6fd10f80de6547472a863b1c2834fbc0bb6886b9 (patch)
treec66f38c8b17f2000b4e84c44afcc9e79a65a5fb1 /autoload
parent5204f2dbc27194818e9cddc8cb01a6171bf4e18c (diff)
downloadale-6fd10f80de6547472a863b1c2834fbc0bb6886b9.zip
Cut down on the time for the CtrlPFunky check, by first checking if the command exists
Diffstat (limited to 'autoload')
-rw-r--r--autoload/ale.vim3
1 files changed, 2 insertions, 1 deletions
diff --git a/autoload/ale.vim b/autoload/ale.vim
index 2172c47b..3bc38cf8 100644
--- a/autoload/ale.vim
+++ b/autoload/ale.vim
@@ -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