Fix the tests for the fix on save feature

This commit is contained in:
w0rp 2017-06-25 16:14:04 +01:00
parent ec3ddce4ac
commit c2138a2656
2 changed files with 6 additions and 1 deletions

View File

@ -40,7 +40,11 @@ function! ale#fix#ApplyQueuedFixes() abort
endif
if l:data.should_save
noautocmd :w!
if empty(&buftype)
noautocmd :w!
else
set nomodified
endif
endif
endif

View File

@ -239,6 +239,7 @@ Execute(ALEFix should save files on the save event):
let g:ale_enabled = 1
noautocmd silent file fix_test_file
noautocmd :w
let g:ale_fixers.testft = ['AddDollars']