Use hasErrorsOrWarningsToDisplay for Syntastic

Reverts PR #759 based on feedback from @lcd047 in scrooloose/syntastic#950
This commit is contained in:
Trevor Fitzgerald 2014-01-23 13:50:30 -05:00
parent ec7d808024
commit bb37e34955
1 changed files with 1 additions and 1 deletions

View File

@ -22,7 +22,7 @@ def syntastic(pl, err_format='ERR:  {first_line} ({num}) ', warn_format='WARN
'''
if not int(vim.eval('exists("g:SyntasticLoclist")')):
return
has_errors = not int(vim.eval('g:SyntasticLoclist.current().isEmpty()'))
has_errors = int(vim.eval('g:SyntasticLoclist.current().hasErrorsOrWarningsToDisplay()'))
if not has_errors:
return
errors = vim.eval('g:SyntasticLoclist.current().errors()')