Skip to content

Commit

Permalink
Do not copy the items for setting highlights, as we do need to modify…
Browse files Browse the repository at this point in the history
… the items in ale_buffer_info
  • Loading branch information
w0rp committed May 7, 2017
1 parent ca12008 commit 32f2175
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions autoload/ale/highlight.vim
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 32f2175

Please sign in to comment.