Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Fix horizontal scroll going too far to the left
Thorsten Ballc8c605d23aac
diff --git a/crates/editor/src/scroll.rs b/crates/editor/src/scroll.rsindex 3f68b7d2d99..d7f1456bd67 100644--- a/crates/editor/src/scroll.rs+++ b/crates/editor/src/scroll.rs@@ -202,7 +202,7 @@ impl ScrollManager {ScrollAnchor {anchor: top_anchor,offset: point(- scroll_position.x,+ scroll_position.x.max(0.),scroll_position.y - top_anchor.to_display_point(&map).row() as f32,),},