#574 Do not restore items with no columns for highlights from hidden buffers

This commit is contained in:
w0rp committed 2017-06-02 19:21:45 +01:00
1 parent 9b6d6344b2
commit 76b5c9283d
2 files changed
+7 -1

No files matched your search

+5 -1
View File
@@ -109,7 +109,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