summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--autoload/ale/highlight.vim10
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