diff options
Diffstat (limited to 'helix-term/src/commands.rs')
-rw-r--r-- | helix-term/src/commands.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/helix-term/src/commands.rs b/helix-term/src/commands.rs index 749b0ecf..9859f64b 100644 --- a/helix-term/src/commands.rs +++ b/helix-term/src/commands.rs @@ -4242,7 +4242,7 @@ pub fn completion(cx: &mut Context) { .map(|language_server| { let language_server_id = language_server.id(); let offset_encoding = language_server.offset_encoding(); - let pos = pos_to_lsp_pos(doc.text(), cursor, offset_encoding); + let pos = pos_to_lsp_pos(&text, cursor, offset_encoding); let doc_id = doc.identifier(); let completion_request = language_server.completion(doc_id, pos, None).unwrap(); |