summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--autoload/ale/highlight.vim3
1 files changed, 1 insertions, 2 deletions
diff --git a/autoload/ale/highlight.vim b/autoload/ale/highlight.vim
index b57931f6..1669ebd2 100644
--- a/autoload/ale/highlight.vim
+++ b/autoload/ale/highlight.vim
@@ -63,9 +63,8 @@ function! ale#highlight#SetHighlights(buffer, loclist) abort
" we next open it.
"
" We'll filter the loclist down to items we can set now.
- let temp_loclist = deepcopy(a:loclist)
let s:buffer_highlights[a:buffer] = filter(
- \ temp_loclist,
+ \ deepcopy(a:loclist),
\ 'v:val.bufnr == a:buffer && v:val.col > 0'
\)