From e2f8d56bc4ddf514641cec0187be73bc3339e728 Mon Sep 17 00:00:00 2001 From: Martin Grenfell Date: Sat, 12 Feb 2011 01:15:00 +1300 Subject: [PATCH] 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' --- plugin/syntastic.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/syntastic.vim b/plugin/syntastic.vim index cf4821b9..d66339d8 100644 --- a/plugin/syntastic.vim +++ b/plugin/syntastic.vim @@ -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