Editor: shaped and layout lines inserted by Action::Enter

This commit is contained in:
Jeremy Soller 2023-11-08 11:56:16 -07:00
parent fa83b2efe9
commit 7a4cf29d4d
No known key found for this signature in database
GPG key ID: DCFCA852D3906975

View file

@ -524,6 +524,9 @@ impl Edit for Editor {
self.cursor.index = 0;
self.buffer.lines.insert(self.cursor.line, new_line);
// Ensure line is properly shaped and laid out (for potential immediate commands)
self.buffer.line_layout(font_system, self.cursor.line);
}
Action::Backspace => {
if self.delete_selection() {