This commit is contained in:
Antonio Scandurra
2021-04-29 10:38:11 +02:00
parent 283c734c91
commit d19fd77f91
2 changed files with 17 additions and 17 deletions
+1 -1
View File
@@ -73,7 +73,7 @@ impl Selection {
}
}
pub fn buffer_row_range(&self, map: &DisplayMap, ctx: &AppContext) -> Range<u32> {
pub fn buffer_rows_for_display_rows(&self, map: &DisplayMap, ctx: &AppContext) -> Range<u32> {
let display_start = self.start.to_display_point(map, ctx).unwrap();
let buffer_start = DisplayPoint::new(display_start.row(), 0)
.to_buffer_point(map, Bias::Left, ctx)