#665 - Replace the nomodified line with :w!

This commit is contained in:
w0rp 2017-06-25 15:59:38 +01:00
parent 2c6b571e66
commit ec3ddce4ac
1 changed files with 1 additions and 5 deletions

View File

@ -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