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

This commit is contained in:
w0rp committed 2017-08-14 23:31:54 +01:00
1 parent 1680f7af63
commit 5af82312fb
6 files changed
+89 -22

No files matched your search

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