Skip to content

Commit 32f2175

Browse files
committed
Do not copy the items for setting highlights, as we do need to modify the items in ale_buffer_info
1 parent ca12008 commit 32f2175

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

autoload/ale/highlight.vim

+1-2
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,7 @@ function! ale#highlight#UpdateHighlights() abort
9797
endfunction
9898

9999
function! ale#highlight#BufferHidden(buffer) abort
100-
let l:info = get(g:ale_buffer_info, a:buffer, {'loclist': []})
101-
let l:loclist = deepcopy(l:info.loclist)
100+
let l:loclist = get(g:ale_buffer_info, a:buffer, {'loclist': []}).loclist
102101

103102
" Remember loclist items, so they can be restored later.
104103
if !empty(l:loclist)

0 commit comments

Comments
 (0)