Implement SelectNext
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
This commit is contained in:
parent
bf7acb5f34
commit
10b3fae2c3
6 changed files with 247 additions and 63 deletions
|
@ -418,6 +418,12 @@ impl DisplayPoint {
|
|||
}
|
||||
}
|
||||
|
||||
impl ToDisplayPoint for usize {
|
||||
fn to_display_point(&self, map: &DisplayMapSnapshot) -> DisplayPoint {
|
||||
map.point_to_display_point(self.to_point(&map.buffer_snapshot), Bias::Left)
|
||||
}
|
||||
}
|
||||
|
||||
impl ToDisplayPoint for Point {
|
||||
fn to_display_point(&self, map: &DisplayMapSnapshot) -> DisplayPoint {
|
||||
map.point_to_display_point(*self, Bias::Left)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue