Use BufWinEnter for g:ale_lint_on_enter instead

This commit is contained in:
w0rp
2017-06-06 17:01:17 +01:00
parent 3c5156d4a4
commit e88eb6c415
3 changed files with 6 additions and 6 deletions

View File

@@ -112,12 +112,12 @@ Execute (g:ale_lint_on_enter = 0 should bind no events):
AssertEqual [], CheckAutocmd('ALERunOnEnterGroup')
Execute (g:ale_lint_on_enter = 1 should bind no BufReadPost and BufEnter):
Execute (g:ale_lint_on_enter = 1 should bind no BufReadPost and BufWinEnter):
let g:ale_lint_on_enter = 1
AssertEqual [
\ 'BufEnter * call ale#Queue(300, ''lint_file'')',
\ 'BufReadPost * call ale#Queue(300, ''lint_file'')',
\ 'BufWinEnter * call ale#Queue(300, ''lint_file'')',
\], CheckAutocmd('ALERunOnEnterGroup')
Execute (g:ale_lint_on_filetype_changed = 0 should bind no events):