diff options
author | Blaž Hrastnik | 2020-09-19 02:55:15 +0000 |
---|---|---|
committer | Blaž Hrastnik | 2020-09-19 02:58:08 +0000 |
commit | 3859f6963dfad2d2d09c979a8e6bb283bc5e2cb3 (patch) | |
tree | e5203866fa9974ad22f6f191eb272ecda28c202f /helix-core/src/transaction.rs | |
parent | eb477ec44276572497c121cb0d91eb56ac58cf26 (diff) |
More work on the UI.
Diffstat (limited to 'helix-core/src/transaction.rs')
-rw-r--r-- | helix-core/src/transaction.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/helix-core/src/transaction.rs b/helix-core/src/transaction.rs index ab32d5da..f6fbddf8 100644 --- a/helix-core/src/transaction.rs +++ b/helix-core/src/transaction.rs @@ -243,13 +243,13 @@ impl ChangeSet { let old_end = old_pos + len; match change { - Retain(_len) => { + Retain(_) => { if old_end > pos { return new_pos + (pos - old_pos); } new_pos += len; } - Delete(_len) => { + Delete(_) => { // a subsequent ins means a replace, consume it let ins = if let Some(Insert(s)) = iter.peek() { iter.next(); |