aboutsummaryrefslogtreecommitdiff
path: root/helix-term/tests/test/helpers.rs
diff options
context:
space:
mode:
Diffstat (limited to 'helix-term/tests/test/helpers.rs')
-rw-r--r--helix-term/tests/test/helpers.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/helix-term/tests/test/helpers.rs b/helix-term/tests/test/helpers.rs
index 2c5043d6..a0f3a32e 100644
--- a/helix-term/tests/test/helpers.rs
+++ b/helix-term/tests/test/helpers.rs
@@ -130,7 +130,7 @@ pub async fn test_key_sequence_with_input_text<T: Into<TestCase>>(
})
.with_selection(test_case.in_selection.clone());
- helix_view::apply_transaction(&transaction, doc, view);
+ doc.apply(&transaction, view.id);
test_key_sequence(
&mut app,
@@ -315,7 +315,7 @@ impl AppBuilder {
.with_selection(selection);
// replace the initial text with the input text
- helix_view::apply_transaction(&trans, doc, view);
+ doc.apply(&trans, view.id);
}
Ok(app)