Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Iterate from leaf to root when marking views dirty in notify
Max Brunsfeld8f1633e79804
diff --git a/crates/gpui/src/window.rs b/crates/gpui/src/window.rsindex 2a88a4f3976..869d6b18268 100644--- a/crates/gpui/src/window.rs+++ b/crates/gpui/src/window.rs@@ -2761,6 +2761,8 @@ impl<'a, V: 'static> ViewContext<'a, V> {.rendered_frame.dispatch_tree.view_path(self.view.entity_id())+ .into_iter()+ .rev(){if !self.window.dirty_views.insert(view_id) {break;