mirror of
https://github.com/ilyakooo0/helix.git
synced 2024-12-01 11:23:10 +03:00
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:
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…
Reference in New Issue
Block a user