Bug fix: handling foreign checkers in "*_checkers" lists.

This commit is contained in:
LCD 47 2016-10-11 11:32:54 +03:00
parent 5044cc699b
commit 90e96d445f
2 changed files with 2 additions and 2 deletions

View File

@ -19,7 +19,7 @@ if has('reltime')
lockvar! g:_SYNTASTIC_START
endif
let g:_SYNTASTIC_VERSION = '3.7.0-236'
let g:_SYNTASTIC_VERSION = '3.7.0-237'
lockvar g:_SYNTASTIC_VERSION
" Sanity checks {{{1

View File

@ -212,7 +212,7 @@ function! g:SyntasticRegistry.getCheckers(ftalias, hints_list) abort " {{{2
let defs =
\ exists('g:syntastic_' . ft . '_checkers') ? g:syntastic_{ft}_checkers :
\ get(s:_DEFAULT_CHECKERS, ft, [])
call extend(cnames, map(copy(defs), 'ft . "/" . v:val' ))
call extend(cnames, map(copy(defs), 'stridx(v:val, "/") < 0 ? ft . "/" . v:val : v:val' ))
endfor
endif
let cnames = syntastic#util#unique(cnames)