mirror of
https://github.com/dense-analysis/ale.git
synced 2026-01-02 01:23:30 +08:00
#574 Do not restore items with no columns for highlights from hidden buffers
This commit is contained in:
@@ -164,7 +164,11 @@ function! ale#highlight#BufferHidden(buffer) abort
|
||||
endif
|
||||
endfor
|
||||
|
||||
let s:buffer_restore_map[a:buffer] = l:loclist
|
||||
let s:buffer_restore_map[a:buffer] = filter(
|
||||
\ copy(l:loclist),
|
||||
\ 'v:val.bufnr == a:buffer && v:val.col > 0'
|
||||
\)
|
||||
|
||||
call clearmatches()
|
||||
endif
|
||||
endfunction
|
||||
|
||||
Reference in New Issue
Block a user