mirror of
https://github.com/dense-analysis/ale.git
synced 2026-10-02 00:13:44 +08:00
#574 Do not restore items with no columns for highlights from hidden buffers
This commit is contained in:
1 parent
955452816a
commit
7c68889bbc
2 files changed
+7
-1
No files matched your search
@@ -98,8 +98,10 @@ Execute(Highlights set by ALE should be removed when buffer cleanup is done):
|
||||
|
||||
Execute(Highlights should be cleared when buffers are hidden):
|
||||
call ale#engine#InitBufferInfo(bufnr('%'))
|
||||
" The second item should be ignored, as it has no column infomration.
|
||||
let g:ale_buffer_info[bufnr('%')].loclist = [
|
||||
\ {'bufnr': bufnr('%'), 'type': 'E', 'lnum': 3, 'col': 2},
|
||||
\ {'bufnr': bufnr('%'), 'type': 'E', 'lnum': 4, 'col': 0},
|
||||
\]
|
||||
call ale#highlight#SetHighlights(
|
||||
\ bufnr('%'),
|
||||
|
||||
Reference in new issue
Block a user