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:
parent
3274cc93df
commit
b65aa7e2a7
1 changed files with 1 additions and 0 deletions
|
@ -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]) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue