Improvements to syntax editor, integrate with libcosmic editor

This commit is contained in:
Jeremy Soller 2022-11-09 10:44:51 -07:00
parent 1663bfc96c
commit bbe7d77b7b
No known key found for this signature in database
GPG key ID: 87F211AF2BE4C2FE
9 changed files with 386 additions and 69 deletions

View file

@ -106,6 +106,16 @@ impl<'a> Editor<'a> {
}
}
/// Get the internal [Buffer]
pub fn buffer(&self) -> &Buffer<'a> {
&self.buffer
}
/// Get the internal [Buffer], mutably
pub fn buffer_mut(&mut self) -> &mut Buffer<'a> {
&mut self.buffer
}
/// Get the current cursor position
pub fn cursor(&self) -> Cursor {
self.cursor