on master help sign in
Since insert preceedes deletes, follow that ordering in Transaction::changes.

Produces the same output but will take the happy path.

commitb0b5451c389b0d893cef4b30df8982a32d22bc9e authorBlaž Hrastnik <blaz@mxxn.io> dateTue 16 Feb 2021, 11:09 (6 years ago) parent0541fbb
1 file changed+1−1
helix-core/src/transaction.rs+1−1
helix-core/src/transaction.rs+1−1
@@ -477,8 +477,8 @@ impl Transaction {
477477 let span = to - from;
478478 match tendril {
479479 Some(text) => {
480− changeset.delete(span);
481480 changeset.insert(text);
481+ changeset.delete(span);
482482 }
483483 None => changeset.delete(span),
484484 }