Send modified lines to jobs, not the file contents

This commit is contained in:
w0rp
2017-05-18 17:50:20 +01:00
parent 05bab00c3c
commit 0b743389e5
2 changed files with 15 additions and 3 deletions

View File

@@ -98,6 +98,16 @@ Execute(ALEFix should allow jobs and simple functions to be combined):
Expect(The lines from the temporary file should be modified):
$x
Execute(ALEFix should send lines modified by functions to jobs):
let g:ale_fixers.testft = ['AddDollars', 'CatLine']
ALEFix
Expect(The lines should first be modified by the function, then the job):
$a
$b
$c
d
Execute(ALEFix should skip commands when jobs fail to run):
let g:ale_emulate_job_failure = 1
let g:ale_fixers.testft = ['CatLine', 'AddDollars']