summaryrefslogtreecommitdiff
path: root/autoload
diff options
context:
space:
mode:
authorw0rp <devw0rp@gmail.com>2019-06-04 21:51:44 +0100
committerw0rp <devw0rp@gmail.com>2019-06-04 21:51:53 +0100
commit381fff0e4c0c7c5057ed0d114169fac3a419ff85 (patch)
treeaea41b60665d0250c370b99dde0f87158c655e83 /autoload
parent42a1fc2d29d710687504043dbb746eefb8248781 (diff)
downloadale-381fff0e4c0c7c5057ed0d114169fac3a419ff85.zip
Make ale_lint_on_save work with b:ale_fix_on_save = 1
Diffstat (limited to 'autoload')
-rw-r--r--autoload/ale/fix.vim2
1 files changed, 1 insertions, 1 deletions
diff --git a/autoload/ale/fix.vim b/autoload/ale/fix.vim
index 2b9555bf..9987fbdd 100644
--- a/autoload/ale/fix.vim
+++ b/autoload/ale/fix.vim
@@ -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