aboutsummaryrefslogtreecommitdiff
path: root/helix-core/src/transaction.rs
diff options
context:
space:
mode:
authorBlaž Hrastnik2021-03-14 01:04:03 +0000
committerBlaž Hrastnik2021-03-14 08:14:34 +0000
commit1cf887dea93f7aa2184772fa2073751f031c5bf3 (patch)
tree26756386efff7c8dd07c918a78a7a2c485816698 /helix-core/src/transaction.rs
parent3445abf88e550cce8ff5683f6fe45d7310597fd7 (diff)
Cleanup: use doc.selection() instead of doc.state.selection().
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 e12aeebe..bd605305 100644
--- a/helix-core/src/transaction.rs
+++ b/helix-core/src/transaction.rs
@@ -443,7 +443,7 @@ impl Transaction {
/// Generate a transaction that reverts this one.
pub fn invert(&self, original: &State) -> Self {
- let changes = self.changes.invert(original.doc());
+ let changes = self.changes.invert(&original.doc);
// Store the current cursor position
let selection = original.selection.clone();