mirror of
https://github.com/powerline/powerline.git
synced 2025-07-25 06:46:33 +02:00
Merge pull request #764 from fitztrev/syntastic-update
Use hasErrorsOrWarningsToDisplay for Syntastic
This commit is contained in:
commit
9eb6550b1b
@ -22,7 +22,7 @@ def syntastic(pl, err_format='ERR: {first_line} ({num}) ', warn_format='WARN
|
|||||||
'''
|
'''
|
||||||
if not int(vim.eval('exists("g:SyntasticLoclist")')):
|
if not int(vim.eval('exists("g:SyntasticLoclist")')):
|
||||||
return
|
return
|
||||||
has_errors = not int(vim.eval('g:SyntasticLoclist.current().isEmpty()'))
|
has_errors = int(vim.eval('g:SyntasticLoclist.current().hasErrorsOrWarningsToDisplay()'))
|
||||||
if not has_errors:
|
if not has_errors:
|
||||||
return
|
return
|
||||||
errors = vim.eval('g:SyntasticLoclist.current().errors()')
|
errors = vim.eval('g:SyntasticLoclist.current().errors()')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user