diff options
author | Blaž Hrastnik | 2021-03-18 04:28:27 +0000 |
---|---|---|
committer | Blaž Hrastnik | 2021-03-18 04:39:56 +0000 |
commit | 8eaf9a432d14b6c2dd084dabbea606e4b1e3baa0 (patch) | |
tree | a353a3a9182622b8434165825e03e2264bb444ea /helix-lsp | |
parent | 51c15da3c32b2f0bf3da6db9bca9496d333ec15a (diff) |
Make Transaction::change only rely on the rope.
Diffstat (limited to 'helix-lsp')
-rw-r--r-- | helix-lsp/src/lib.rs | 2 |
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() { |