diff options
author | w0rp <devw0rp@gmail.com> | 2017-08-13 13:24:10 +0100 |
---|---|---|
committer | w0rp <devw0rp@gmail.com> | 2017-08-13 13:24:10 +0100 |
commit | ae6cecabb682a2dab04351e7cfd572f465bca3bb (patch) | |
tree | b374f43d9de117657eeb2b18bed3b8c50ad6def7 /autoload | |
parent | f67fc43d9b633db2b3d0de728bb4b9e3f9066049 (diff) | |
download | ale-ae6cecabb682a2dab04351e7cfd572f465bca3bb.zip |
#653 Filter items based on the buffer number for problem counts
Diffstat (limited to 'autoload')
-rw-r--r-- | autoload/ale/statusline.vim | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/autoload/ale/statusline.vim b/autoload/ale/statusline.vim index fd586a23..a073f7a0 100644 --- a/autoload/ale/statusline.vim +++ b/autoload/ale/statusline.vim @@ -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 |