From 6fd10f80de6547472a863b1c2834fbc0bb6886b9 Mon Sep 17 00:00:00 2001 From: w0rp Date: Sat, 14 Oct 2017 17:11:30 +0100 Subject: [PATCH] Cut down on the time for the CtrlPFunky check, by first checking if the command exists --- autoload/ale.vim | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/autoload/ale.vim b/autoload/ale.vim index 2172c47..3bc38cf 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