aboutsummaryrefslogtreecommitdiff
path: root/helix-view/src/editor.rs
diff options
context:
space:
mode:
authorIvan Tham2023-01-21 18:13:43 +0000
committerGitHub2023-01-21 18:13:43 +0000
commita20a96abdcfbea3b3eb890bfc266850938434a90 (patch)
treedf1300dfc07f671c11abb195a62ba3f20ea510c6 /helix-view/src/editor.rs
parent68fc10903aad7b5dbb5b8be4ee17343e1a1b8f6c (diff)
Remove apply_transaction helper (#5598)
Diffstat (limited to 'helix-view/src/editor.rs')
-rw-r--r--helix-view/src/editor.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/helix-view/src/editor.rs b/helix-view/src/editor.rs
index 4a44a00c..3ee0325d 100644
--- a/helix-view/src/editor.rs
+++ b/helix-view/src/editor.rs
@@ -1502,6 +1502,6 @@ fn try_restore_indent(doc: &mut Document, view: &mut View) {
let line_start_pos = text.line_to_char(range.cursor_line(text));
(line_start_pos, pos, None)
});
- crate::apply_transaction(&transaction, doc, view);
+ doc.apply(&transaction, view.id);
}
}