Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Fix inline diagnostics in the project diff (#26275)
Kirill Bulatovf8deebc6db50
diff --git a/crates/editor/src/element.rs b/crates/editor/src/element.rsindex 1e3f7f2e7b0..473a98ed500 100644--- a/crates/editor/src/element.rs+++ b/crates/editor/src/element.rs@@ -1691,7 +1691,7 @@ impl EditorElement {let pos_y = content_origin.y+ line_height * (row.0 as f32 - scroll_pixel_position.y / line_height);- let window_ix = row.minus(start_row) as usize;+ let window_ix = row.0.saturating_sub(start_row.0) as usize;let pos_x = {let crease_trailer_layout = &crease_trailers[window_ix];let line_layout = &line_layouts[window_ix];diff --git a/crates/git_ui/src/project_diff.rs b/crates/git_ui/src/project_diff.rsindex 81fb36321ba..a3b9591fbc6 100644--- a/crates/git_ui/src/project_diff.rs+++ b/crates/git_ui/src/project_diff.rs@@ -138,6 +138,7 @@ impl ProjectDiff {window,cx,);+ diff_display_editor.disable_inline_diagnostics();diff_display_editor.set_expand_all_diff_hunks(cx);diff_display_editor.register_addon(GitPanelAddon {workspace: workspace.downgrade(),