Fix #891 - Do not check ctrlp-funky windows
This commit is contained in:
parent
6b87dd24ee
commit
6d50074984
2 changed files with 13 additions and 0 deletions
|
@ -48,6 +48,7 @@ function! ale#ShouldDoNothing(buffer) abort
|
|||
\ || ale#util#InSandbox()
|
||||
\ || !ale#Var(a:buffer, 'enabled')
|
||||
\ || ale#FileTooLarge()
|
||||
\ || getbufvar(a:buffer, '&l:statusline') =~# 'CtrlPMode.*funky'
|
||||
endfunction
|
||||
|
||||
" (delay, [linting_flag, buffer_number])
|
||||
|
|
12
test/test_should_do_nothing_conditions.vader
Normal file
12
test/test_should_do_nothing_conditions.vader
Normal file
|
@ -0,0 +1,12 @@
|
|||
Before:
|
||||
Save &l:statusline
|
||||
|
||||
After:
|
||||
Restore
|
||||
|
||||
Execute(ALE shouldn't do much of anything for ctrlp-funky buffers):
|
||||
Assert !ale#ShouldDoNothing(bufnr('')), 'The preliminary check failed'
|
||||
|
||||
let &l:statusline = '%#CtrlPMode2# prt %*%#CtrlPMode1# line %* <mru>={%#CtrlPMode1# funky %*}=<fil> <-> %=%<%#CtrlPMode2# %{getcwd()} %*'
|
||||
|
||||
Assert ale#ShouldDoNothing(bufnr(''))
|
Reference in a new issue