From 05583f8cc9679306d3907c9d48a351417552bbec Mon Sep 17 00:00:00 2001 From: Philipp Mildenberger Date: Thu, 16 Mar 2023 00:34:05 +0100 Subject: Fix hardcoded offset_encoding --- helix-term/src/commands.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'helix-term/src') 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 { -- cgit v1.2.3-70-g09d2