Merge pull request #318 from dstanek/master

Fixes issue #311
This commit is contained in:
Martin Grenfell 2012-09-07 02:35:15 -07:00
commit 70f8354420

View File

@ -241,7 +241,10 @@ function! s:ModeMapAllowsAutoChecking()
endfunction
function! s:BufHasErrorsOrWarningsToDisplay()
return len(s:Errors()) || (!g:syntastic_quiet_warnings && !empty(s:LocList()))
if empty(s:LocList())
return 0
endif
return len(s:Errors()) || !g:syntastic_quiet_warnings
endfunction
function! s:Errors()