From 797f1c7941566f7fafd928121b742b679be6d764 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A9ctor=20Ram=C3=B3n=20Jim=C3=A9nez?= Date: Sat, 16 Sep 2023 15:59:26 +0200 Subject: [PATCH] Set `cursor_moved` to `true` in `Editor::insert_string` --- src/edit/editor.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/edit/editor.rs b/src/edit/editor.rs index 4277ae1..f19f41b 100644 --- a/src/edit/editor.rs +++ b/src/edit/editor.rs @@ -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) {