Since insert preceedes deletes, follow that ordering in Transaction::changes.

Produces the same output but will take the happy path.
imgbot
Blaž Hrastnik 4 years ago
parent 0541fbb85f
commit b0b5451c38

@ -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),
}

Loading…
Cancel
Save