Editor: add GotoLine action

This commit is contained in:
Jeremy Soller 2023-11-07 15:56:31 -07:00
parent e62fea5efd
commit db0883b525
2 changed files with 8 additions and 0 deletions

View file

@ -89,6 +89,8 @@ pub enum Action {
BufferStart,
/// Move cursor to the end of the document
BufferEnd,
/// Move cursor to specific line
GotoLine(usize),
}
/// A trait to allow easy replacements of [`Editor`], like `SyntaxEditor`