Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Debugger UI: Fix breakpoint rendering in git hunks (#27538)
Anthony Eid5f8c53ffe8bc
diff --git a/crates/editor/src/editor.rs b/crates/editor/src/editor.rsindex 4e1c1a4fb9c..82d61fedf0b 100644--- a/crates/editor/src/editor.rs+++ b/crates/editor/src/editor.rs@@ -6128,35 +6128,6 @@ impl Editor {return breakpoint_display_points;};- if let Some(buffer) = self.buffer.read(cx).as_singleton() {- let buffer_snapshot = buffer.read(cx).snapshot();-- for breakpoint in- breakpoint_store- .read(cx)- .breakpoints(&buffer, None, &buffer_snapshot, cx)- {- let point = buffer_snapshot.summary_for_anchor::<Point>(&breakpoint.0);- let mut anchor = multi_buffer_snapshot.anchor_before(point);- anchor.text_anchor = breakpoint.0;-- breakpoint_display_points.insert(- snapshot- .point_to_display_point(- MultiBufferPoint {- row: point.row,- column: point.column,- },- Bias::Left,- )- .row(),- (anchor, breakpoint.1.clone()),- );- }-- return breakpoint_display_points;- }-let range = snapshot.display_point_to_point(DisplayPoint::new(range.start, 0), Bias::Left)..snapshot.display_point_to_point(DisplayPoint::new(range.end, 0), Bias::Right);diff --git a/crates/editor/src/element.rs b/crates/editor/src/element.rsindex 168078ac2dd..a0831034d6f 100644--- a/crates/editor/src/element.rs+++ b/crates/editor/src/element.rs@@ -1955,7 +1955,12 @@ impl EditorElement {.filter_map(|(display_row, (text_anchor, bp))| {if row_infos.get((display_row.0.saturating_sub(range.start.0)) as usize)- .is_some_and(|row_info| row_info.expand_info.is_some())+ .is_some_and(|row_info| {+ row_info.expand_info.is_some()+ || row_info+ .diff_status+ .is_some_and(|status| status.is_deleted())+ }){return None;}