Skip to content

Commit e846a99

Browse files
authored
Fix function argument (#1002)
Fixes #1000
1 parent 748a8e3 commit e846a99

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

autoload/lsp/internal/diagnostics/under_cursor.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
" options = {
44
" 'server': '', " optional
55
" }
6-
function! lsp#internal#diagnostics#under_cursor#get_diagnostic() abort
6+
function! lsp#internal#diagnostics#under_cursor#get_diagnostic(...) abort
77
let l:options = get(a:000, 0, {})
88
let l:server = get(l:options, 'server', '')
99
let l:bufnr = bufnr('%')

autoload/lsp/ui/vim/code_action.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ function! lsp#ui#vim#code_action#do(option) abort
3939
let l:bufnr = bufnr('%')
4040
let l:command_id = lsp#_new_command()
4141
for l:server_name in l:server_names
42-
let l:diagnostic = lsp#internal#diagnostics#under_cursor#get_diagnostic(l:server_name)
42+
let l:diagnostic = lsp#internal#diagnostics#under_cursor#get_diagnostic({'server': l:server_name})
4343
call lsp#send_request(l:server_name, {
4444
\ 'method': 'textDocument/codeAction',
4545
\ 'params': {

0 commit comments

Comments
 (0)