summaryrefslogtreecommitdiff
path: root/autoload
diff options
context:
space:
mode:
authorw0rp <devw0rp@gmail.com>2017-06-25 15:59:38 +0100
committerw0rp <devw0rp@gmail.com>2017-06-25 15:59:38 +0100
commitec3ddce4aca794742abf54bdf146ccd51e07e821 (patch)
treea536c1d9335a813faf36f9efad29780a77e47594 /autoload
parent2c6b571e66ed88c769217935a781cc6cbf8b0349 (diff)
downloadale-ec3ddce4aca794742abf54bdf146ccd51e07e821.zip
#665 - Replace the nomodified line with :w!
Diffstat (limited to 'autoload')
-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