summaryrefslogtreecommitdiff
path: root/autoload/ale.vim
diff options
context:
space:
mode:
authorw0rp <devw0rp@gmail.com>2016-10-23 22:41:00 +0100
committerw0rp <devw0rp@gmail.com>2016-10-23 22:41:00 +0100
commit7481facd7373dda4667c401695e6d8000ef52362 (patch)
tree11ebf0397b14aff2c9daab798aa6a323f2bde254 /autoload/ale.vim
parent36461b69d7dbf0abe494cd450dd9233eed7b672f (diff)
downloadale-7481facd7373dda4667c401695e6d8000ef52362.zip
#107 Stop jobs when buffers close
Diffstat (limited to 'autoload/ale.vim')
-rw-r--r--autoload/ale.vim5
1 files changed, 4 insertions, 1 deletions
diff --git a/autoload/ale.vim b/autoload/ale.vim
index 44cd5825..3e86c8f9 100644
--- a/autoload/ale.vim
+++ b/autoload/ale.vim
@@ -27,8 +27,11 @@ function! ale#Lint(...) abort
let l:buffer = bufnr('%')
let l:linters = ale#linter#Get(&filetype)
+ " Initialise the buffer information if needed.
+ call ale#engine#InitBufferInfo(l:buffer)
+
" Set a variable telling us to clear the loclist later.
- let g:ale_buffer_should_reset_map[l:buffer] = 1
+ let g:ale_buffer_info[l:buffer].should_reset = 1
for l:linter in l:linters
" Check if a given linter has a program which can be executed.