mirror of
https://github.com/dense-analysis/ale.git
synced 2026-01-03 01:53:30 +08:00
Fix lambda and funcref chain values
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user