Merge pull request #759 from fitztrev/syntastic-errors

Fix Syntastic deprecation warning
This commit is contained in:
ZyX-I 2014-01-22 19:08:00 -08:00
commit 0ffe3c9e99
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 = int(vim.eval('g:SyntasticLoclist.current().hasErrorsOrWarningsToDisplay()'))
has_errors = not int(vim.eval('g:SyntasticLoclist.current().isEmpty()'))
if not has_errors:
return
errors = vim.eval('g:SyntasticLoclist.current().errors()')