Skip to content

Commit 1c010e6

Browse files
committed
complete: fix off by one
Fix off by one in column calculation introduced in fatih#3617. Fixes fatih#3625
1 parent b75321f commit 1c010e6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

autoload/go/complete.vim

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ function! go#complete#Complete(findstart, base) abort
2424
"findstart = 1 when we need to get the start of the match
2525
if a:findstart == 1
2626
let [l:line, l:col] = getpos('.')[1:2]
27-
let [l:line, l:col] = go#lsp#lsp#Position(l:line, l:col)
27+
let [l:line, l:col] = go#lsp#lsp#Position(l:line, l:col-1)
2828
let l:completion = go#lsp#Completion(expand('%:p'), l:line, l:col, funcref('s:handler', [l:state]))
2929
if l:completion
3030
return -3

0 commit comments

Comments
 (0)