Don't modify files when fixing doesn't change anything.

This commit is contained in:
w0rp 2017-05-19 15:23:00 +01:00
parent e6b132c915
commit 18467a55b5
1 changed files with 5 additions and 0 deletions

View File

@ -26,6 +26,11 @@ function! ale#fix#ApplyQueuedFixes() abort
return
endif
if l:data.lines_before == l:data.output
" Don't modify the buffer if nothing has changed.
return
endif
call setline(1, l:data.output)
let l:start_line = len(l:data.output) + 1