summaryrefslogtreecommitdiff
path: root/plugin
diff options
context:
space:
mode:
authorw0rp <devw0rp@gmail.com>2017-08-01 00:03:24 +0100
committerw0rp <devw0rp@gmail.com>2017-08-01 00:03:24 +0100
commita4ffd2f37c5d535d62170f7e3021cd2981689988 (patch)
tree3216004415ad5d39a42e105c6969fc59dfdea031 /plugin
parentec82530247547a696f888cdefd4aeec5cf3d40cf (diff)
downloadale-a4ffd2f37c5d535d62170f7e3021cd2981689988.zip
#734 - Use the buffer number from the events for entering buffers and saving buffers for checking buffers
Diffstat (limited to 'plugin')
-rw-r--r--plugin/ale.vim6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugin/ale.vim b/plugin/ale.vim
index dc9b93ee..79e6836b 100644
--- a/plugin/ale.vim
+++ b/plugin/ale.vim
@@ -219,11 +219,11 @@ function! ALEInitAuGroups() abort
augroup ALERunOnEnterGroup
autocmd!
if g:ale_enabled && g:ale_lint_on_enter
- autocmd BufWinEnter,BufRead * call ale#Queue(300, 'lint_file')
+ autocmd BufWinEnter,BufRead * call ale#Queue(0, 'lint_file', str2nr(expand('<abuf>')))
" Track when the file is changed outside of Vim.
autocmd FileChangedShellPost * call ale#events#FileChangedEvent(str2nr(expand('<abuf>')))
" If the file has been changed, then check it again on enter.
- autocmd BufEnter * call ale#events#EnterEvent()
+ autocmd BufEnter * call ale#events#EnterEvent(str2nr(expand('<abuf>')))
endif
augroup END
@@ -245,7 +245,7 @@ function! ALEInitAuGroups() abort
augroup ALERunOnSaveGroup
autocmd!
if (g:ale_enabled && g:ale_lint_on_save) || g:ale_fix_on_save
- autocmd BufWritePost * call ale#events#SaveEvent()
+ autocmd BufWritePost * call ale#events#SaveEvent(str2nr(expand('<abuf>')))
endif
augroup END