mirror of
https://github.com/dense-analysis/ale.git
synced 2026-10-17 11:31:26 +08:00
Fix an ale:linters bug, and add a test for it.
This commit is contained in:
1 parent
78bcf96e34
commit
1d2405f2bc
2 files changed
+13
-1
No files matched your search
@@ -108,7 +108,7 @@ function! ale#linter#Get(original_filetype) abort
|
||||
elseif type(l:linter_names) == type([])
|
||||
" Select only the linters we or the user has specified.
|
||||
for l:linter in l:all_linters
|
||||
if index(l:linter_names, l:linter.name)
|
||||
if index(l:linter_names, l:linter.name) >= 0
|
||||
call add(l:combined_linters, l:linter)
|
||||
endif
|
||||
endfor
|
||||
|
||||
Reference in new issue
Block a user