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

Co-Authored-By: Max <max@zed.dev>
Co-Authored-By: Marshall <marshall@zed.dev>

Release Notes:

- Fixed a bug where text styles could leak between frames (preview only)

Co-authored-by: Max <max@zed.dev>
Co-authored-by: Marshall <marshall@zed.dev>
This commit is contained in:
Conrad Irwin 2024-03-13 15:03:45 -06:00 committed by GitHub
parent 3274cc93df
commit b65aa7e2a7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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]) {