Fix #42, where some linting isn't run when opening some files.
This commit is contained in:
parent
514f088d2c
commit
478c32f85d
@ -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*
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user