aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBlaž Hrastnik2021-02-16 02:09:05 +0000
committerBlaž Hrastnik2021-02-16 02:09:05 +0000
commitb0b5451c389b0d893cef4b30df8982a32d22bc9e (patch)
tree49aae046f233b8014e8944ed866eb92e78a5136f
parent0541fbb85f06a20d9cdec03c999ec805575be83e (diff)
Since insert preceedes deletes, follow that ordering in Transaction::changes.
Produces the same output but will take the happy path.
-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 359eb2ee..9cb51718 100644
--- a/helix-core/src/transaction.rs
+++ b/helix-core/src/transaction.rs
@@ -477,8 +477,8 @@ impl Transaction {
let span = to - from;
match tendril {
Some(text) => {
- changeset.delete(span);
changeset.insert(text);
+ changeset.delete(span);
}
None => changeset.delete(span),
}