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 9aa945d..2d1574e 100644
--- a/autocomplete.c
+++ b/autocomplete.c
@@ -91,7 +91,7 @@ static void autocomplete_find_completions(Ted *ted) {
};
request.data.completion = (LSPRequestCompletion) {
.position = {
- .document = str_dup(buffer->filename),
+ .document = lsp_document_id(lsp, buffer->filename),
.pos = buffer_pos_to_lsp(buffer, pos)
}
};