aboutsummaryrefslogtreecommitdiff
path: root/helix-core/src/transaction.rs
diff options
context:
space:
mode:
authorIvan Tham2021-06-02 15:47:50 +0000
committerIvan Tham2021-06-02 15:47:50 +0000
commitf5f46b1fed242f0b5a206753f7f977299fb2ff65 (patch)
tree3789fdb1378b76bb572a37d5cab1276aae91a8ca /helix-core/src/transaction.rs
parent0a6672c6261062eb13ed8c30ab2800c340e5f6ac (diff)
Separate document history into Cell
As history is used separately from the rest of the edits, separating it can avoid needless borrowing and cloning. But one need to be aware later.
Diffstat (limited to 'helix-core/src/transaction.rs')
-rw-r--r--helix-core/src/transaction.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/helix-core/src/transaction.rs b/helix-core/src/transaction.rs
index 77cb358f..e61063f0 100644
--- a/helix-core/src/transaction.rs
+++ b/helix-core/src/transaction.rs
@@ -415,7 +415,7 @@ impl ChangeSet {
/// Transaction represents a single undoable unit of changes. Several changes can be grouped into
/// a single transaction.
-#[derive(Debug, Clone)]
+#[derive(Debug, Default, Clone)]
pub struct Transaction {
changes: ChangeSet,
selection: Option<Selection>,