Fix #730 - Lint files on save even when nothing was fixed
This commit is contained in:
@@ -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