summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--autoload/ale/fix.vim6
1 files changed, 1 insertions, 5 deletions
diff --git a/autoload/ale/fix.vim b/autoload/ale/fix.vim
index 3e4c2393..428ea8d8 100644
--- a/autoload/ale/fix.vim
+++ b/autoload/ale/fix.vim
@@ -28,10 +28,6 @@ function! ale#fix#ApplyQueuedFixes() abort
call remove(g:ale_fix_buffer_data, l:buffer)
if l:data.changes_made
- if l:data.should_save
- noautocmd :w!
- endif
-
call setline(1, l:data.output)
let l:start_line = len(l:data.output) + 1
@@ -44,7 +40,7 @@ function! ale#fix#ApplyQueuedFixes() abort
endif
if l:data.should_save
- set nomodified
+ noautocmd :w!
endif
endif