Set up one BufEnter event used for everything, and add tests for linting when the filetype changes

This commit is contained in:
w0rp
2017-08-14 23:31:46 +01:00
parent 1680f7af63
commit 5af82312fb
6 changed files with 89 additions and 22 deletions

View File

@@ -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):