mirror of
https://github.com/zed-industries/zed.git
synced 2024-12-28 03:25:59 +00:00
Fix panic when painting blocks
This commit is contained in:
parent
c225a3e5af
commit
08dfcba68a
1 changed files with 3 additions and 1 deletions
|
@ -2464,7 +2464,9 @@ impl Element<Editor> for EditorElement {
|
|||
self.paint_text(text_bounds, &mut layout, editor, cx);
|
||||
|
||||
if !layout.blocks.is_empty() {
|
||||
self.paint_blocks(bounds, &mut layout, editor, cx);
|
||||
cx.with_element_id(Some("editor_blocks"), |cx| {
|
||||
self.paint_blocks(bounds, &mut layout, editor, cx);
|
||||
})
|
||||
}
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue