aboutsummaryrefslogtreecommitdiff
path: root/helix-lsp/src/client.rs
diff options
context:
space:
mode:
Diffstat (limited to 'helix-lsp/src/client.rs')
-rw-r--r--helix-lsp/src/client.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/helix-lsp/src/client.rs b/helix-lsp/src/client.rs
index d27beea8..52cd85c1 100644
--- a/helix-lsp/src/client.rs
+++ b/helix-lsp/src/client.rs
@@ -303,7 +303,7 @@ impl Client {
new_pos += i;
}
Delete(_) => {
- let start = pos_to_lsp_pos(&new_text, new_pos);
+ let start = pos_to_lsp_pos(new_text, new_pos);
let end = traverse(start, old_text.slice(old_pos..old_end));
// deletion
@@ -314,7 +314,7 @@ impl Client {
});
}
Insert(s) => {
- let start = pos_to_lsp_pos(&new_text, new_pos);
+ let start = pos_to_lsp_pos(new_text, new_pos);
new_pos += s.chars().count();