Fix counting of warnings and style warnings

This commit is contained in:
w0rp committed 2017-05-21 18:58:26 +01:00
1 parent d511b02ebe
commit 57ad32f986
2 files changed
+27 -13

No files matched your search

+2 -2
View File
@@ -28,9 +28,9 @@ function! ale#statusline#Update(buffer, loclist) abort
for l:entry in a:loclist
if l:entry.type ==# 'W'
if get(l:entry, 'sub_type', '') ==# 'style'
let l:count.warning += 1
else
let l:count.style_warning += 1
else
let l:count.warning += 1
endif
elseif l:entry.type ==# 'I'
let l:count.info += 1