Flesh out the editor example a bit more

This commit is contained in:
Héctor Ramón Jiménez 2023-09-18 19:07:41 +02:00
parent 8446fe6de5
commit e7326f0af6
No known key found for this signature in database
GPG key ID: 7CC46565708259A7
10 changed files with 311 additions and 27 deletions

View file

@ -125,6 +125,10 @@ impl text::Editor for () {
text::editor::Cursor::Caret(Point::ORIGIN)
}
fn cursor_position(&self) -> (usize, usize) {
(0, 0)
}
fn selection(&self) -> Option<String> {
None
}