mirror of
https://github.com/dense-analysis/ale.git
synced 2026-02-11 04:01:36 +08:00
Make ale_lint_on_save work with b:ale_fix_on_save = 1
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user