From dd9ad9b5be84bea7105a91bb7e15c308cfe2c57f Mon Sep 17 00:00:00 2001 From: w0rp Date: Sat, 29 Aug 2020 12:33:17 +0100 Subject: #3319 - Try to modify buffers later for ALEFix --- test/fix/test_ale_fix.vader | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'test') diff --git a/test/fix/test_ale_fix.vader b/test/fix/test_ale_fix.vader index e8a9dd7a..62643da2 100644 --- a/test/fix/test_ale_fix.vader +++ b/test/fix/test_ale_fix.vader @@ -727,6 +727,19 @@ Expect(There should be only two lines): a b +Execute(ALEFix should modify a buffer that is not modifiable, if it becomes modifable later): + let g:ale_fixers.testft = ['RemoveLastLineOneArg'] + + set nomodifiable + ALEFix + call ale#test#FlushJobs() + set modifiable + call ale#fix#ApplyQueuedFixes(bufnr('')) + +Expect(There should be only two lines): + a + b + Execute(b:ale_fix_on_save = 1 should override g:ale_fix_on_save = 0): let g:ale_fix_on_save = 0 let b:ale_fix_on_save = 1 -- cgit v1.2.3