mirror of
https://github.com/powerline/powerline.git
synced 2025-07-27 07:44:36 +02:00
Brought back modeline and added spaces around plus signs
This commit is contained in:
parent
67683ecbb8
commit
421a71ee53
@ -1,3 +1,4 @@
|
|||||||
|
# vim:fileencoding=utf-8:noet
|
||||||
from __future__ import (unicode_literals, division, absolute_import, print_function)
|
from __future__ import (unicode_literals, division, absolute_import, print_function)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
@ -23,14 +24,14 @@ def ale(segment_info, pl, err_format='ERR: ln {first_line} ({num}) ', warn_forma
|
|||||||
'''
|
'''
|
||||||
if not (vim_global_exists('ale_enabled') and int(vim.eval('g:ale_enabled'))):
|
if not (vim_global_exists('ale_enabled') and int(vim.eval('g:ale_enabled'))):
|
||||||
return None
|
return None
|
||||||
has_errors = int(vim.eval('ale#statusline#Count('+str(segment_info['bufnr'])+').total'))
|
has_errors = int(vim.eval('ale#statusline#Count(' + str(segment_info['bufnr']) + ').total'))
|
||||||
if not has_errors:
|
if not has_errors:
|
||||||
return
|
return
|
||||||
error = None
|
error = None
|
||||||
warning = None
|
warning = None
|
||||||
errors_count = 0
|
errors_count = 0
|
||||||
warnings_count = 0
|
warnings_count = 0
|
||||||
for issue in vim.eval('ale#engine#GetLoclist('+str(segment_info['bufnr'])+')'):
|
for issue in vim.eval('ale#engine#GetLoclist(' + str(segment_info['bufnr']) + ')'):
|
||||||
if issue['type'] == 'E':
|
if issue['type'] == 'E':
|
||||||
error = error or issue
|
error = error or issue
|
||||||
errors_count += 1
|
errors_count += 1
|
||||||
|
Loading…
x
Reference in New Issue
Block a user