diff options
author | w0rp <devw0rp@gmail.com> | 2017-11-22 22:39:43 +0000 |
---|---|---|
committer | w0rp <devw0rp@gmail.com> | 2017-11-22 22:39:43 +0000 |
commit | 8dd542bed0dd39f4af6897410d36a048fe796518 (patch) | |
tree | 8e2b4aca8a4e67facbb4c132e9572de05867206b /test/fix | |
parent | d07b5b71a460eb0eeb5956f0da9dc409c24723aa (diff) | |
download | ale-8dd542bed0dd39f4af6897410d36a048fe796518.zip |
Fix lambda and funcref chain values
Diffstat (limited to 'test/fix')
-rw-r--r-- | test/fix/test_ale_fix.vader | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/test/fix/test_ale_fix.vader b/test/fix/test_ale_fix.vader index 0987416b..7e0ea33f 100644 --- a/test/fix/test_ale_fix.vader +++ b/test/fix/test_ale_fix.vader @@ -67,7 +67,14 @@ Before: endfunction function! FirstChainCallbackSkipped(buffer) - return {'command': '', 'chain_with': 'SecondChainCallback'} + let l:ChainWith = 'SecondChainCallback' + + " Test with lambdas where support is available. + if has('lambda') + let l:ChainWith = {buffer, output -> SecondChainCallback(buffer, output)} + endif + + return {'command': '', 'chain_with': l:ChainWith} endfunction function! FirstChainCallbackSecondSkipped(buffer) |