mirror of
https://github.com/zed-industries/zed.git
synced 2025-02-06 18:46:49 +00:00
Avoid holding borrow to editor while painting child elements
This commit is contained in:
parent
f2c63781f9
commit
3a8e9b5697
2 changed files with 648 additions and 670 deletions
File diff suppressed because it is too large
Load diff
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue