From 8eaf9a432d14b6c2dd084dabbea606e4b1e3baa0 Mon Sep 17 00:00:00 2001 From: Blaž Hrastnik Date: Thu, 18 Mar 2021 13:28:27 +0900 Subject: Make Transaction::change only rely on the rope. --- helix-core/src/history.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'helix-core/src/history.rs') diff --git a/helix-core/src/history.rs b/helix-core/src/history.rs index 99de3f7c..c92c2a89 100644 --- a/helix-core/src/history.rs +++ b/helix-core/src/history.rs @@ -96,7 +96,7 @@ mod test { let mut state = State::new(doc); let transaction1 = - Transaction::change(&state, vec![(5, 5, Some(" world!".into()))].into_iter()); + Transaction::change(&state.doc, vec![(5, 5, Some(" world!".into()))].into_iter()); // Need to commit before applying! history.commit_revision(&transaction1, &state); @@ -106,7 +106,7 @@ mod test { // --- let transaction2 = - Transaction::change(&state, vec![(6, 11, Some("世界".into()))].into_iter()); + Transaction::change(&state.doc, vec![(6, 11, Some("世界".into()))].into_iter()); // Need to commit before applying! history.commit_revision(&transaction2, &state); -- cgit v1.2.3-70-g09d2