mirror of
https://github.com/helix-editor/helix.git
synced 2024-11-10 10:35:16 +03:00
Transaction: need to consume insert | delete properly.
This commit is contained in:
parent
b52474cf66
commit
a74ff6bc03
@ -350,6 +350,8 @@ impl ChangeSet {
|
||||
|
||||
// a subsequent delete means a replace, consume it
|
||||
if let Some(Delete(len)) = iter.peek() {
|
||||
iter.next();
|
||||
|
||||
old_end = old_pos + len;
|
||||
// in range of replaced text
|
||||
if old_end > pos {
|
||||
|
Loading…
Reference in New Issue
Block a user