allow setting cursor

This commit is contained in:
Dima Rets 2023-06-10 12:38:14 +01:00
parent b5f45f81f6
commit 6dba04df08
4 changed files with 16 additions and 12 deletions

View file

@ -99,9 +99,12 @@ pub trait Edit {
/// Get the internal [`Buffer`], mutably
fn buffer_mut(&mut self) -> &mut Buffer;
/// Get the current cursor position
/// Get the current cursor
fn cursor(&self) -> Cursor;
/// Set the current cursor
fn set_cursor(&mut self, cursor: Cursor);
/// Get the current selection position
fn select_opt(&self) -> Option<Cursor>;