mirror of
https://github.com/dense-analysis/ale.git
synced 2026-01-02 17:43:33 +08:00
#653 Filter items based on the buffer number for problem counts
This commit is contained in:
@@ -22,10 +22,11 @@ function! ale#statusline#Update(buffer, loclist) abort
|
||||
return
|
||||
endif
|
||||
|
||||
let l:loclist = filter(copy(a:loclist), 'v:val.bufnr == a:buffer')
|
||||
let l:count = s:CreateCountDict()
|
||||
let l:count.total = len(a:loclist)
|
||||
let l:count.total = len(l:loclist)
|
||||
|
||||
for l:entry in a:loclist
|
||||
for l:entry in l:loclist
|
||||
if l:entry.type is# 'W'
|
||||
if get(l:entry, 'sub_type', '') is# 'style'
|
||||
let l:count.style_warning += 1
|
||||
|
||||
Reference in New Issue
Block a user