Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Fix a few regressions related to the flicker fix (#9190)
Antonio Scandurra91a0923fc4ca
diff --git a/crates/editor/src/element.rs b/crates/editor/src/element.rsindex 187a23537ec..7faa6716277 100644--- a/crates/editor/src/element.rs+++ b/crates/editor/src/element.rs@@ -2083,11 +2083,9 @@ impl EditorElement {}fn paint_cursors(&mut self, layout: &mut EditorLayout, cx: &mut ElementContext) {- cx.paint_layer(layout.text_hitbox.bounds, |cx| {- for cursor in &mut layout.cursors {- cursor.paint(layout.content_origin, cx);- }- });+ for cursor in &mut layout.cursors {+ cursor.paint(layout.content_origin, cx);+ }}fn paint_scrollbar(&mut self, layout: &mut EditorLayout, cx: &mut ElementContext) {diff --git a/crates/workspace/src/modal_layer.rs b/crates/workspace/src/modal_layer.rsindex db67e1618a2..8208d808e90 100644--- a/crates/workspace/src/modal_layer.rs+++ b/crates/workspace/src/modal_layer.rs@@ -139,15 +139,21 @@ impl Render for ModalLayer {return div();};- div().absolute().size_full().top_0().left_0().child(- v_flex()- .h(px(0.0))- .top_20()- .flex()- .flex_col()- .items_center()- .track_focus(&active_modal.focus_handle)- .child(h_flex().child(active_modal.modal.view())),- )+ div()+ .occlude()+ .absolute()+ .size_full()+ .top_0()+ .left_0()+ .child(+ v_flex()+ .h(px(0.0))+ .top_20()+ .flex()+ .flex_col()+ .items_center()+ .track_focus(&active_modal.focus_handle)+ .child(h_flex().child(active_modal.modal.view())),+ )}}