Improvements to syntax editor, integrate with libcosmic editor
This commit is contained in:
parent
1663bfc96c
commit
bbe7d77b7b
9 changed files with 386 additions and 69 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue