Fix Syntastic deprecation warning

`hasErrorsOrWarningsToDisplay` has been deprecated in Syntastic.
See: https://github.com/scrooloose/syntastic/commit/d629be9

This fixes the warning that appears when opening a new file:
"syntastic: warning: function hasErrorsOrWarningsToDisplay() is
deprecated, please use !isEmpty() instead"
This commit is contained in:
Trevor Fitzgerald 2014-01-22 15:35:15 -05:00
parent ae53f99253
commit cab3362377

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()')