Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
git: Side by side spacer mouse cursor (#50814)
Cameron Mcloughlin3fb377b7797d
diff --git a/crates/editor/src/element.rs b/crates/editor/src/element.rsindex 7b5530c6fc3..159aee456a6 100644--- a/crates/editor/src/element.rs+++ b/crates/editor/src/element.rs@@ -4157,6 +4157,7 @@ impl EditorElement {div().id(block_id)+ .cursor(CursorStyle::Arrow).w_full().h((block_height as f32) * line_height).flex()@@ -11123,12 +11124,6 @@ impl Element for EditorElement {self.paint_mouse_listeners(layout, window, cx);self.paint_background(layout, window, cx);- if !layout.spacer_blocks.is_empty() {- window.with_element_namespace("blocks", |window| {- self.paint_spacer_blocks(layout, window, cx);- });- }-self.paint_indent_guides(layout, window, cx);if layout.gutter_hitbox.size.width > Pixels::ZERO {@@ -11138,6 +11133,12 @@ impl Element for EditorElement {self.paint_text(layout, window, cx);+ if !layout.spacer_blocks.is_empty() {+ window.with_element_namespace("blocks", |window| {+ self.paint_spacer_blocks(layout, window, cx);+ });+ }+if layout.gutter_hitbox.size.width > Pixels::ZERO {self.paint_gutter_highlights(layout, window, cx);self.paint_gutter_indicators(layout, window, cx);