summaryrefslogtreecommitdiff
path: root/autoload
diff options
context:
space:
mode:
authorw0rp <devw0rp@gmail.com>2016-10-11 23:48:43 +0100
committerw0rp <devw0rp@gmail.com>2016-10-11 23:48:43 +0100
commit1d2405f2bc9dc6485c7e0f57f06e316f8d3c855e (patch)
treed79117d6fbd6c79622a87a39f9961d671cbd94d8 /autoload
parent78bcf96e345c9aa31412ae06e1da2bbe6a568ff5 (diff)
downloadale-1d2405f2bc9dc6485c7e0f57f06e316f8d3c855e.zip
Fix an ale:linters bug, and add a test for it.
Diffstat (limited to 'autoload')
-rw-r--r--autoload/ale/linter.vim2
1 files changed, 1 insertions, 1 deletions
diff --git a/autoload/ale/linter.vim b/autoload/ale/linter.vim
index 0cd3f9b1..f99d32a9 100644
--- a/autoload/ale/linter.vim
+++ b/autoload/ale/linter.vim
@@ -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