mirror of
https://github.com/dense-analysis/ale
synced 2025-01-28 10:42:59 +00:00
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
|
endif
|
||||||
|
|
||||||
if l:data.should_save
|
if l:data.should_save
|
||||||
noautocmd :w!
|
if empty(&buftype)
|
||||||
|
noautocmd :w!
|
||||||
|
else
|
||||||
|
set nomodified
|
||||||
|
endif
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
@ -239,6 +239,7 @@ Execute(ALEFix should save files on the save event):
|
|||||||
let g:ale_enabled = 1
|
let g:ale_enabled = 1
|
||||||
|
|
||||||
noautocmd silent file fix_test_file
|
noautocmd silent file fix_test_file
|
||||||
|
noautocmd :w
|
||||||
|
|
||||||
let g:ale_fixers.testft = ['AddDollars']
|
let g:ale_fixers.testft = ['AddDollars']
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user