From 59e60241864dcf711325109423d74cf6e8b6463d Mon Sep 17 00:00:00 2001 From: Blaž Hrastnik Date: Thu, 18 Mar 2021 13:45:57 +0900 Subject: Remove State from a few more signatures. --- helix-view/src/document.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'helix-view/src') diff --git a/helix-view/src/document.rs b/helix-view/src/document.rs index eba6478d..ffbe8930 100644 --- a/helix-view/src/document.rs +++ b/helix-view/src/document.rs @@ -346,7 +346,7 @@ mod test { // insert - let transaction = Transaction::insert(&doc.state, " world".into()); + let transaction = Transaction::insert(doc.text(), doc.selection(), " world".into()); let old_doc = doc.state.clone(); doc.apply(&transaction); let changes = Client::changeset_to_changes(&old_doc.doc, doc.text(), transaction.changes()); -- cgit v1.2.3-70-g09d2