Fix #42, where some linting isn't run when opening some files.

This commit is contained in:
w0rp 2016-10-06 11:02:00 +01:00
parent 514f088d2c
commit 478c32f85d
2 changed files with 4 additions and 4 deletions

View File

@ -108,9 +108,9 @@ g:ale_lint_on_enter *g:ale_lint_on_enter*
Type: |Number|
Default: `1`
When this option is set to `1`, the |BufEnter| event will be used to apply
linters when buffers are first opened. If this is not desired, this variable
can be set to `0` in your vimrc file to disable this behaviour.
When this option is set to `1`, the |BufEnter| and |BufRead| events will be
used to apply linters when buffers are first opened. If this is not desired,
this variable can be set to `0` in your vimrc file to disable this behaviour.
g:ale_lint_on_save *g:ale_lint_on_save*

View File

@ -355,7 +355,7 @@ endif
if g:ale_lint_on_enter
augroup ALERunOnEnterGroup
autocmd!
autocmd BufEnter * call ALELint(20)
autocmd BufEnter,BufRead * call ALELint(0)
augroup END
endif