From ec3ddce4aca794742abf54bdf146ccd51e07e821 Mon Sep 17 00:00:00 2001 From: w0rp Date: Sun, 25 Jun 2017 15:59:38 +0100 Subject: [PATCH] #665 - Replace the nomodified line with :w! --- autoload/ale/fix.vim | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/autoload/ale/fix.vim b/autoload/ale/fix.vim index 3e4c239..428ea8d 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