diff options
author | Philipp Mildenberger | 2023-03-15 23:34:05 +0000 |
---|---|---|
committer | Philipp Mildenberger | 2023-05-18 19:48:32 +0000 |
commit | 05583f8cc9679306d3907c9d48a351417552bbec (patch) | |
tree | d51b727455f21ca95531d6cfe7a273d02c8235b7 /helix-term | |
parent | 74e21e1b250be884242596cbd7d98b098bb0fd0c (diff) |
Fix hardcoded offset_encoding
Diffstat (limited to 'helix-term')
-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 c7d28e19..27f289f0 100644 --- a/helix-term/src/commands.rs +++ b/helix-term/src/commands.rs @@ -4254,7 +4254,7 @@ pub fn completion(cx: &mut Context) { .filter_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, helix_lsp::OffsetEncoding::Utf8); + let pos = pos_to_lsp_pos(doc.text(), cursor, offset_encoding); let completion_request = language_server.completion(doc.identifier(), pos, None)?; Some(async move { |