Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

Fix accidental leak of text stack between frames (#9297)

Conrad Irwinb65aa7e2a7d4
diff --git a/crates/gpui/src/window/element_cx.rs b/crates/gpui/src/window/element_cx.rs
index 37530ff059b..c62ab96feab 100644
--- a/crates/gpui/src/window/element_cx.rs
+++ b/crates/gpui/src/window/element_cx.rs
@@ -432,6 +432,7 @@ impl<'a> ElementContext<'a> {
);
self.window.next_frame.deferred_draws = deferred_draws;
self.window.element_id_stack.clear();
+ self.window.text_style_stack.clear();
}
fn paint_deferred_draws(&mut self, deferred_draw_indices: &[usize]) {