diff options
author | w0rp <devw0rp@gmail.com> | 2017-06-18 18:20:05 +0100 |
---|---|---|
committer | w0rp <devw0rp@gmail.com> | 2017-06-18 18:20:05 +0100 |
commit | 8ab103504f4a526eb59aa68c9ed1d53bf29970d1 (patch) | |
tree | 2acacd6d7bbc13db1ffaa2cab3577232e7547c2e | |
parent | 7e79018b8ca921426bc30163c024e1558ad9f279 (diff) | |
download | ale-8ab103504f4a526eb59aa68c9ed1d53bf29970d1.zip |
Fix #658 - Clear highlights for all problem types
-rw-r--r-- | autoload/ale/highlight.vim | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/autoload/ale/highlight.vim b/autoload/ale/highlight.vim index 80e43526..2f7bf5a5 100644 --- a/autoload/ale/highlight.vim +++ b/autoload/ale/highlight.vim @@ -64,15 +64,7 @@ function! ale#highlight#UnqueueHighlights(buffer) abort endfunction function! s:GetALEMatches() abort - let l:list = [] - - for l:match in getmatches() - if l:match['group'] ==# 'ALEError' || l:match['group'] ==# 'ALEWarning' - call add(l:list, l:match) - endif - endfor - - return l:list + return filter(getmatches(), 'v:val.group =~# ''^ALE''') endfunction function! s:GetCurrentMatchIDs(loclist) abort |