diff options
-rw-r--r-- | autoload/ale/fix.vim | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/autoload/ale/fix.vim b/autoload/ale/fix.vim index a674e75c..9fe99563 100644 --- a/autoload/ale/fix.vim +++ b/autoload/ale/fix.vim @@ -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 |