Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Pop node from dispatch tree during `cx.paint_view`
Antonio Scandurra05d05b051b17
diff --git a/crates/gpui/src/window.rs b/crates/gpui/src/window.rsindex b707066559d..8e38992251f 100644--- a/crates/gpui/src/window.rs+++ b/crates/gpui/src/window.rs@@ -2034,6 +2034,7 @@ impl<'a> WindowContext<'a> {.dispatch_tree.push_node(None, None, Some(view_id));let result = f(self);+ self.window.next_frame.dispatch_tree.pop_node();self.window.next_frame.view_stack.pop();result}