mirror of
https://github.com/dense-analysis/ale.git
synced 2026-10-20 12:57:04 +08:00
Fix #534 - Stop other higlights being restored when buffers are hidden and shown again
This commit is contained in:
1 parent
0ac82f0a17
commit
bf8aae02e8
2 files changed
+26
-1
No files matched your search
@@ -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