Set cursor_moved to true in Editor::insert_string

This commit is contained in:
Héctor Ramón Jiménez 2023-09-16 15:59:26 +02:00
parent 6235716beb
commit 797f1c7941
No known key found for this signature in database
GPG key ID: 7CC46565708259A7

View file

@ -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) {