Initial visual mode
This commit is contained in:
parent
5e2e859413
commit
37c921f972
13 changed files with 621 additions and 113 deletions
|
@ -85,6 +85,19 @@ impl<T: Copy + Ord> Selection<T> {
|
|||
}
|
||||
}
|
||||
|
||||
impl Selection<usize> {
|
||||
#[cfg(feature = "test-support")]
|
||||
pub fn from_offset(offset: usize) -> Self {
|
||||
Selection {
|
||||
id: 0,
|
||||
start: offset,
|
||||
end: offset,
|
||||
goal: SelectionGoal::None,
|
||||
reversed: false,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
impl Selection<Anchor> {
|
||||
pub fn resolve<'a, D: 'a + TextDimension>(
|
||||
&'a self,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue