summaryrefslogtreecommitdiffstats
path: root/core/src/text
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2023-09-17 19:27:51 +0200
committerLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2023-09-17 19:27:51 +0200
commit2897986f2ded7318894a52572bec3d62754ebfaa (patch)
treeb8179908780f022aaed37fe93fcfedd64caaa129 /core/src/text
parent23d00445ff1225b3e5ca99cb27966143cda8a2ce (diff)
downloadiced-2897986f2ded7318894a52572bec3d62754ebfaa.tar.gz
iced-2897986f2ded7318894a52572bec3d62754ebfaa.tar.bz2
iced-2897986f2ded7318894a52572bec3d62754ebfaa.zip
Notify `Highlighter` of topmost line change
Diffstat (limited to 'core/src/text')
-rw-r--r--core/src/text/editor.rs9
1 files changed, 7 insertions, 2 deletions
diff --git a/core/src/text/editor.rs b/core/src/text/editor.rs
index 0f439c8d..2144715f 100644
--- a/core/src/text/editor.rs
+++ b/core/src/text/editor.rs
@@ -47,13 +47,18 @@ pub enum Action {
Select(Motion),
SelectWord,
SelectLine,
+ Edit(Edit),
+ Click(Point),
+ Drag(Point),
+}
+
+#[derive(Debug, Clone, PartialEq)]
+pub enum Edit {
Insert(char),
Paste(Arc<String>),
Enter,
Backspace,
Delete,
- Click(Point),
- Drag(Point),
}
#[derive(Debug, Clone, Copy, PartialEq)]