Don't modify files when fixing doesn't change anything.
This commit is contained in:
parent
e6b132c915
commit
18467a55b5
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user