From 478c32f85d735dc23fa6b497d4ff9f6b6ac57ad1 Mon Sep 17 00:00:00 2001 From: w0rp Date: Thu, 6 Oct 2016 11:02:00 +0100 Subject: [PATCH] Fix #42, where some linting isn't run when opening some files. --- doc/ale.txt | 6 +++--- plugin/ale/zmain.vim | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/doc/ale.txt b/doc/ale.txt index e32df32..369361c 100644 --- a/doc/ale.txt +++ b/doc/ale.txt @@ -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* diff --git a/plugin/ale/zmain.vim b/plugin/ale/zmain.vim index e41ff7e..83bb810 100644 --- a/plugin/ale/zmain.vim +++ b/plugin/ale/zmain.vim @@ -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