diff options
author | pommicket <pommicket@gmail.com> | 2022-12-22 16:27:06 -0500 |
---|---|---|
committer | pommicket <pommicket@gmail.com> | 2022-12-22 16:27:06 -0500 |
commit | 6bb4da5fab94d2ed3d093b996674fd1cc28eda2f (patch) | |
tree | d986574a0100cd4d35782585a8309815f8bf1b49 /autocomplete.c | |
parent | f2296487cf9b2e86261eaf1d448b723f3ef70202 (diff) |
document IDs instead of documents
Diffstat (limited to 'autocomplete.c')
-rw-r--r-- | autocomplete.c | 2 |
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) } }; |