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 6cb1c3ae..f3a479e3 100644
--- a/autoload/ale/highlight.vim
+++ b/autoload/ale/highlight.vim
@@ -97,8 +97,7 @@ function! ale#highlight#UpdateHighlights() abort
endfunction
function! ale#highlight#BufferHidden(buffer) abort
- let l:info = get(g:ale_buffer_info, a:buffer, {'loclist': []})
- let l:loclist = deepcopy(l:info.loclist)
+ let l:loclist = get(g:ale_buffer_info, a:buffer, {'loclist': []}).loclist
" Remember loclist items, so they can be restored later.
if !empty(l:loclist)