aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--crates/expect/src/lib.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/expect/src/lib.rs b/crates/expect/src/lib.rs
index aa95a88c5..dd7b96aab 100644
--- a/crates/expect/src/lib.rs
+++ b/crates/expect/src/lib.rs
@@ -188,8 +188,8 @@ impl Patchwork {
188 .fold((0usize, 0usize), |(x1, y1), (x2, y2)| (x1 + x2, y1 + y2)); 188 .fold((0usize, 0usize), |(x1, y1), (x2, y2)| (x1 + x2, y1 + y2));
189 189
190 for pos in &mut [&mut range.start, &mut range.end] { 190 for pos in &mut [&mut range.start, &mut range.end] {
191 **pos -= delete;
191 **pos += insert; 192 **pos += insert;
192 **pos -= delete
193 } 193 }
194 194
195 self.text.replace_range(range, &patch); 195 self.text.replace_range(range, &patch);