Get the Editor crate compiling
This commit is contained in:
parent
9c74be3bf2
commit
efc85d1b75
3 changed files with 425 additions and 491 deletions
|
@ -37,6 +37,10 @@ pub struct SelectionState {
|
|||
}
|
||||
|
||||
impl<T: ToOffset + ToPoint + Copy + Ord> Selection<T> {
|
||||
pub fn is_empty(&self) -> bool {
|
||||
self.start == self.end
|
||||
}
|
||||
|
||||
pub fn head(&self) -> T {
|
||||
if self.reversed {
|
||||
self.start
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue