Fix lambda and funcref chain values

This commit is contained in:
w0rp
2017-11-22 22:39:43 +00:00
parent d07b5b71a4
commit 8dd542bed0
2 changed files with 23 additions and 17 deletions

View File

@@ -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)