Skip to content
Browse files

Only keep "valid" entries in the error count.

Signed-off-by: Florent Bruneau <florent.bruneau@intersec.com>
  • Loading branch information...
1 parent 0fab9ef commit 54d59e20ef270abba31d48ebba68a397a7fdf1bb @Fruneau committed Mar 26, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 plugin/syntastic.vim
View
4 plugin/syntastic.vim
@@ -229,14 +229,14 @@ endfunction
function! s:Errors()
if !exists("b:syntastic_errors")
- let b:syntastic_errors = s:FilterLocList({'type': "E"})
+ let b:syntastic_errors = s:FilterLocList({'type': "E", 'valid': 1})
endif
return b:syntastic_errors
endfunction
function! s:Warnings()
if !exists("b:syntastic_warnings")
- let b:syntastic_warnings = s:FilterLocList({'type': "W"})
+ let b:syntastic_warnings = s:FilterLocList({'type': "W", 'valid': 1})
endif
return b:syntastic_warnings
endfunction

0 comments on commit 54d59e2

Please sign in to comment.
Something went wrong with that request. Please try again.