Merge pull request #764 from fitztrev/syntastic-update

Use hasErrorsOrWarningsToDisplay for Syntastic
This commit is contained in:
ZyX-I 2014-01-23 11:05:24 -08:00
commit 9eb6550b1b
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()')