fix a bug with s:ErrorsForType()

compare the error type case insensitively since we cant know whether
errors will have a type of 'E' or 'e'
This commit is contained in:
Martin Grenfell 2011-02-12 01:15:00 +13:00
parent 056fb50d77
commit e2f8d56bc4

View File

@ -106,7 +106,7 @@ function! s:ErrorsForType(type)
if !exists("b:syntastic_loclist")
return []
endif
return filter(copy(b:syntastic_loclist), 'v:val["type"] ==# "' . a:type . '"')
return filter(copy(b:syntastic_loclist), 'v:val["type"] ==? "' . a:type . '"')
endfunction
if g:syntastic_enable_signs