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

Produces the same output but will take the happy path.
This commit is contained in:
Blaž Hrastnik 2021-02-16 11:09:05 +09:00
parent 0541fbb85f
commit b0b5451c38

View File

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