mirror of
https://github.com/dense-analysis/ale.git
synced 2025-12-06 12:44:23 +08:00
Set up one BufEnter event used for everything, and add tests for linting when the filetype changes
This commit is contained in:
@@ -1,8 +1,14 @@
|
||||
Before:
|
||||
Save g:ale_buffer_info
|
||||
|
||||
let g:ale_buffer_info = {}
|
||||
|
||||
let g:original_buffer = bufnr('%')
|
||||
new
|
||||
noautocmd new
|
||||
|
||||
After:
|
||||
Restore
|
||||
|
||||
unlet! g:original_buffer
|
||||
|
||||
Execute(Errors should be set in the loclist for the original buffer, not the new one):
|
||||
|
||||
Reference in New Issue
Block a user