Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Ignore off-screen cursors
Conrad Irwin0e984e1e69e7
diff --git a/crates/workspace/src/workspace.rs b/crates/workspace/src/workspace.rsindex 2f3f2f9010a..0ebd01e1f7a 100644--- a/crates/workspace/src/workspace.rs+++ b/crates/workspace/src/workspace.rs@@ -2077,8 +2077,8 @@ impl Workspace {};let cursor = self.active_pane.read(cx).pixel_position_of_cursor(cx);let center = match cursor {- Some(cursor) => cursor,- None => bounding_box.center(),+ Some(cursor) if bounding_box.contains_point(cursor) => cursor,+ _ => bounding_box.center(),};let distance_to_next = theme::current(cx).workspace.pane_divider.width + 1.;