Fix the tests for the fix on save feature
This commit is contained in:
parent
ec3ddce4ac
commit
c2138a2656
@ -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
|
||||
|
||||
|
@ -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']
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user