Shape as needed only in update during layout

This commit is contained in:
Héctor Ramón Jiménez 2023-09-18 13:57:47 +02:00
parent d1440ceca6
commit a01b123cec
No known key found for this signature in database
GPG key ID: 7CC46565708259A7

View file

@ -442,8 +442,6 @@ impl editor::Editor for Editor {
}
}
editor.shape_as_needed(font_system.raw());
self.0 = Some(Arc::new(internal));
}
@ -487,8 +485,6 @@ impl editor::Editor for Editor {
internal.font = new_font;
internal.topmost_line_changed = Some(0);
internal.editor.shape_as_needed(font_system.raw());
}
let metrics = internal.editor.buffer().metrics();
@ -526,6 +522,8 @@ impl editor::Editor for Editor {
new_highlighter.change_line(topmost_line_changed);
}
internal.editor.shape_as_needed(font_system.raw());
self.0 = Some(Arc::new(internal));
}