We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e2e7ad7 commit c8f911bCopy full SHA for c8f911b
autoload/go/complete.vim
@@ -24,7 +24,7 @@ function! go#complete#Complete(findstart, base) abort
24
"findstart = 1 when we need to get the start of the match
25
if a:findstart == 1
26
let [l:line, l:col] = getpos('.')[1:2]
27
- let [l:line, l:col] = go#lsp#lsp#Position(l:line, l:col)
+ let [l:line, l:col] = go#lsp#lsp#Position(l:line, l:col-1)
28
let l:completion = go#lsp#Completion(expand('%:p'), l:line, l:col, funcref('s:handler', [l:state]))
29
if l:completion
30
return -3
0 commit comments