Avoid holding borrow to editor while painting child elements

This commit is contained in:
Antonio Scandurra 2023-11-22 11:40:38 +01:00
parent f2c63781f9
commit 3a8e9b5697
2 changed files with 648 additions and 670 deletions

File diff suppressed because it is too large Load diff

View file

@ -174,10 +174,7 @@ impl TextState {
let Some(lines) = text_system
.shape_text(
&text,
font_size,
&runs[..],
wrap_width, // Wrap if we know the width.
&text, font_size, &runs, wrap_width, // Wrap if we know the width.
)
.log_err()
else {