diff --git a/zed/src/sum_tree/cursor.rs b/zed/src/sum_tree/cursor.rs index 18c86b0338..5e1624aa87 100644 --- a/zed/src/sum_tree/cursor.rs +++ b/zed/src/sum_tree/cursor.rs @@ -229,9 +229,8 @@ where .. } => { if !descend { - let summary = &child_summaries[entry.index]; - entry.seek_dimension.add_summary(summary, cx); - entry.sum_dimension.add_summary(summary, cx); + entry.seek_dimension = self.seek_dimension.clone(); + entry.sum_dimension = self.sum_dimension.clone(); entry.index += 1; }