mirror of
https://github.com/dense-analysis/ale.git
synced 2026-10-08 05:04:46 +08:00
Fix #730 - Lint files on save even when nothing was fixed
This commit is contained in:
1 parent
82dd80c692
commit
b44f6053d1
2 files changed
+36
-2
No files matched your search
@@ -77,8 +77,6 @@ function! ale#fix#ApplyFixes(buffer, output) abort
|
||||
echoerr 'The file was changed before fixing finished'
|
||||
return
|
||||
endif
|
||||
|
||||
let l:data.done = 1
|
||||
endif
|
||||
|
||||
if !bufexists(a:buffer)
|
||||
@@ -86,6 +84,8 @@ function! ale#fix#ApplyFixes(buffer, output) abort
|
||||
call remove(g:ale_fix_buffer_data, a:buffer)
|
||||
endif
|
||||
|
||||
let l:data.done = 1
|
||||
|
||||
" We can only change the lines of a buffer which is currently open,
|
||||
" so try and apply the fixes to the current buffer.
|
||||
call ale#fix#ApplyQueuedFixes()
|
||||
|
||||
Reference in new issue
Block a user