Skip to content

Commit

Permalink
Merge pull request #3626 from bhcleek/completion/off-by-one
Browse files Browse the repository at this point in the history
complete: fix off by one
  • Loading branch information
bhcleek authored Jan 6, 2024
2 parents b75321f + 1c010e6 commit 0b5e2c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion autoload/go/complete.vim
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ function! go#complete#Complete(findstart, base) abort
"findstart = 1 when we need to get the start of the match
if a:findstart == 1
let [l:line, l:col] = getpos('.')[1:2]
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)
let l:completion = go#lsp#Completion(expand('%:p'), l:line, l:col, funcref('s:handler', [l:state]))
if l:completion
return -3
Expand Down

0 comments on commit 0b5e2c3

Please sign in to comment.