From 8dd542bed0dd39f4af6897410d36a048fe796518 Mon Sep 17 00:00:00 2001 From: w0rp Date: Wed, 22 Nov 2017 22:39:43 +0000 Subject: Fix lambda and funcref chain values --- test/fix/test_ale_fix.vader | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'test/fix') 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) -- cgit v1.2.3