#904 Do not run linters on :wq or :x

This commit is contained in:
w0rp
2017-10-14 23:22:13 +01:00
parent 010ebc2459
commit ef495ba32d
6 changed files with 113 additions and 2 deletions

View File

@@ -56,7 +56,9 @@ function! ale#fix#ApplyQueuedFixes() abort
" If ALE linting is enabled, check for problems with the file again after
" fixing problems.
if g:ale_enabled && l:should_lint
if g:ale_enabled
\&& l:should_lint
\&& !getbufvar(l:buffer, 'ale_quitting')
call ale#Queue(0, l:data.should_save ? 'lint_file' : '')
endif
endfunction