mirror of
https://github.com/dense-analysis/ale.git
synced 2026-05-17 05:49:47 +08:00
#1501 Pass the buffer number from BufWritePost on to ale#fix#Fix
This commit is contained in:
@@ -19,7 +19,7 @@ function! ale#events#SaveEvent(buffer) abort
|
||||
endif
|
||||
|
||||
if ale#Var(a:buffer, 'fix_on_save')
|
||||
let l:will_fix = ale#fix#Fix('save_file')
|
||||
let l:will_fix = ale#fix#Fix(a:buffer, 'save_file')
|
||||
let l:should_lint = l:should_lint && !l:will_fix
|
||||
endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user