summaryrefslogtreecommitdiff
path: root/autocomplete.c
diff options
context:
space:
mode:
Diffstat (limited to 'autocomplete.c')
-rw-r--r--autocomplete.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/autocomplete.c b/autocomplete.c
index 2955183..5045a3d 100644
--- a/autocomplete.c
+++ b/autocomplete.c
@@ -121,7 +121,7 @@ static void autocomplete_send_completion_request(Ted *ted, TextBuffer *buffer, B
request.data.completion = (LSPRequestCompletion) {
.position = {
.document = lsp_document_id(lsp, buffer->filename),
- .pos = buffer_pos_to_lsp(buffer, pos)
+ .pos = buffer_pos_to_lsp_position(buffer, pos)
},
.context = {
.trigger_kind = lsp_trigger,