Set cursor_moved to true in Editor::insert_string
This commit is contained in:
parent
6235716beb
commit
797f1c7941
1 changed files with 1 additions and 0 deletions
|
|
@ -288,6 +288,7 @@ impl Edit for Editor {
|
|||
|
||||
// Append the text after insertion
|
||||
self.cursor.index = self.buffer.lines[self.cursor.line].text().len() - after_len;
|
||||
self.cursor_moved = true;
|
||||
}
|
||||
|
||||
fn action(&mut self, font_system: &mut FontSystem, action: Action) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue