Fix #730 - Lint files on save even when nothing was fixed

This commit is contained in:
w0rp
2017-07-10 13:40:22 +01:00
parent 82dd80c692
commit b44f6053d1
2 changed files with 36 additions and 2 deletions

View File

@@ -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()