Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

git: Fix inline blame moving on horizontal scroll (#10974)

Thorsten Ball031580f4dcb5
diff --git a/crates/editor/src/element.rs b/crates/editor/src/element.rs
index b886c5db1f9..1000952cf64 100644
--- a/crates/editor/src/element.rs
+++ b/crates/editor/src/element.rs
@@ -1200,7 +1200,7 @@ impl EditorElement {
.map(|col| self.column_pixels(col as usize, cx))
.unwrap_or(px(0.));
- content_origin.x + max(padded_line_width, min_column)
+ (content_origin.x - scroll_pixel_position.x) + max(padded_line_width, min_column)
};
let absolute_offset = point(start_x, start_y);