#653 Filter items based on the buffer number for problem counts

This commit is contained in:
w0rp committed 2017-08-13 13:24:10 +01:00
1 parent f67fc43d9b
commit ae6cecabb6
2 files changed
+49 -38

No files matched your search

+3 -2
View File
@@ -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