mirror of
https://github.com/powerline/powerline.git
synced 2025-04-08 19:25:04 +02:00
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:
parent
ae53f99253
commit
cab3362377
@ -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()')
|
||||
|
Loading…
x
Reference in New Issue
Block a user