aboutsummaryrefslogtreecommitdiff
path: root/helix-lsp/src
diff options
context:
space:
mode:
authorBlaž Hrastnik2021-03-18 04:28:27 +0000
committerBlaž Hrastnik2021-03-18 04:39:56 +0000
commit8eaf9a432d14b6c2dd084dabbea606e4b1e3baa0 (patch)
treea353a3a9182622b8434165825e03e2264bb444ea /helix-lsp/src
parent51c15da3c32b2f0bf3da6db9bca9496d333ec15a (diff)
Make Transaction::change only rely on the rope.
Diffstat (limited to 'helix-lsp/src')
-rw-r--r--helix-lsp/src/lib.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/helix-lsp/src/lib.rs b/helix-lsp/src/lib.rs
index 3e4f55ea..3dcdeb07 100644
--- a/helix-lsp/src/lib.rs
+++ b/helix-lsp/src/lib.rs
@@ -58,7 +58,7 @@ pub mod util {
) -> Transaction {
let doc = state.doc.slice(..);
Transaction::change(
- state,
+ &state.doc,
edits.into_iter().map(|edit| {
// simplify "" into None for cleaner changesets
let replacement = if !edit.new_text.is_empty() {