Make ale_lint_on_save work with b:ale_fix_on_save = 1

This commit is contained in:
w0rp
2019-06-04 21:51:44 +01:00
parent 42a1fc2d29
commit 381fff0e4c
2 changed files with 49 additions and 1 deletions

View File

@@ -54,7 +54,7 @@ function! ale#fix#ApplyQueuedFixes(buffer) abort
endif
if l:data.should_save
let l:should_lint = g:ale_fix_on_save
let l:should_lint = ale#Var(a:buffer, 'fix_on_save')
\ && ale#Var(a:buffer, 'lint_on_save')
else
let l:should_lint = l:data.changes_made