Use hasErrorsOrWarningsToDisplay for Syntastic
Reverts PR #759 based on feedback from @lcd047 in scrooloose/syntastic#950
This commit is contained in:
parent
ec7d808024
commit
bb37e34955
|
@ -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()')
|
||||
|
|
Loading…
Reference in New Issue