mirror of
https://github.com/dense-analysis/ale.git
synced 2026-05-13 10:08:32 +08:00
Cut down on the time for the CtrlPFunky check, by first checking if the command exists
This commit is contained in:
+2
-1
@@ -70,7 +70,8 @@ function! ale#ShouldDoNothing(buffer) abort
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
" Do nothing from CtrlP buffers with CtrlP-funky.
|
" 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
|
return 1
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user