From bb37e349556792bc394e17a746cad4cd241b3523 Mon Sep 17 00:00:00 2001 From: Trevor Fitzgerald Date: Thu, 23 Jan 2014 13:50:30 -0500 Subject: [PATCH] Use hasErrorsOrWarningsToDisplay for Syntastic Reverts PR #759 based on feedback from @lcd047 in scrooloose/syntastic#950 --- powerline/segments/plugin/syntastic.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/powerline/segments/plugin/syntastic.py b/powerline/segments/plugin/syntastic.py index 97533f68..71a411fa 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 = 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()')