mirror of
https://github.com/dense-analysis/ale.git
synced 2026-01-19 17:42:57 +08:00
Fix #534 - Stop other higlights being restored when buffers are hidden and shown again
This commit is contained in:
@@ -97,7 +97,10 @@ endfunction
|
||||
|
||||
function! ale#highlight#BufferHidden(buffer) abort
|
||||
" Remember all matches, so they can be restored later.
|
||||
let s:buffer_restore_map[a:buffer] = getmatches()
|
||||
let s:buffer_restore_map[a:buffer] = filter(
|
||||
\ getmatches(),
|
||||
\ 'get(v:val, ''group'', '''')[:2] ==# ''ALE'''
|
||||
\)
|
||||
call clearmatches()
|
||||
endfunction
|
||||
|
||||
|
||||
Reference in New Issue
Block a user