Merge pull request #3482 from liskin/lsp-popup-menu-fix

codefix: Fix LSP MenuCallback invocation (E119, not enough args)
This commit is contained in:
Horacio Sanson 2021-01-13 23:41:34 +09:00 committed by GitHub
commit 7b187af10a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions

View File

@ -261,7 +261,10 @@ function! ale#codefix#HandleLSPResponse(conn_id, response) abort
" Send the results to the menu callback, if set.
if l:MenuCallback isnot v:null
call l:MenuCallback(map(copy(l:result), '[''lsp'', v:val]'))
call l:MenuCallback(
\ l:data,
\ map(copy(l:result), '[''lsp'', v:val]')
\)
return
endif