Editor: shaped and layout lines inserted by Action::Enter
This commit is contained in:
parent
fa83b2efe9
commit
7a4cf29d4d
1 changed files with 3 additions and 0 deletions
|
|
@ -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() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue