diff --git a/powerline/segments/plugin/syntastic.py b/powerline/segments/plugin/syntastic.py index 71a411fa..97533f68 100644 --- a/powerline/segments/plugin/syntastic.py +++ b/powerline/segments/plugin/syntastic.py @@ -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()')