mirror of
https://github.com/dense-analysis/ale.git
synced 2026-01-09 21:12:31 +08:00
Fix counting of warnings and style warnings
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user