mirror of
https://github.com/dense-analysis/ale.git
synced 2026-08-31 03:46:56 +08:00
Don't modify files when fixing doesn't change anything.
This commit is contained in:
@@ -26,6 +26,11 @@ function! ale#fix#ApplyQueuedFixes() abort
|
|||||||
return
|
return
|
||||||
endif
|
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)
|
call setline(1, l:data.output)
|
||||||
|
|
||||||
let l:start_line = len(l:data.output) + 1
|
let l:start_line = len(l:data.output) + 1
|
||||||
|
|||||||
Reference in New Issue
Block a user