summaryrefslogtreecommitdiff
path: root/autoload
diff options
context:
space:
mode:
authorw0rp <devw0rp@gmail.com>2017-07-10 13:40:22 +0100
committerw0rp <devw0rp@gmail.com>2017-07-10 13:40:22 +0100
commitb44f6053d1faffa47191009f84dc36d14ebc3992 (patch)
treea6c54f1fa72116561c527e0995ea9e61f943e49e /autoload
parent82dd80c692bed7d9bdf0b9664b9222f4afb98fe2 (diff)
downloadale-b44f6053d1faffa47191009f84dc36d14ebc3992.zip
Fix #730 - Lint files on save even when nothing was fixed
Diffstat (limited to 'autoload')
-rw-r--r--autoload/ale/fix.vim4
1 files changed, 2 insertions, 2 deletions
diff --git a/autoload/ale/fix.vim b/autoload/ale/fix.vim
index 9ecacd12..45855a50 100644
--- a/autoload/ale/fix.vim
+++ b/autoload/ale/fix.vim
@@ -77,8 +77,6 @@ function! ale#fix#ApplyFixes(buffer, output) abort
echoerr 'The file was changed before fixing finished'
return
endif
-
- let l:data.done = 1
endif
if !bufexists(a:buffer)
@@ -86,6 +84,8 @@ function! ale#fix#ApplyFixes(buffer, output) abort
call remove(g:ale_fix_buffer_data, a:buffer)
endif
+ let l:data.done = 1
+
" We can only change the lines of a buffer which is currently open,
" so try and apply the fixes to the current buffer.
call ale#fix#ApplyQueuedFixes()