Index max buffer row on MultiBuffer

This commit is contained in:
Max Brunsfeld 2021-12-21 12:36:46 -08:00
parent 04d577e326
commit 13ecd16685
3 changed files with 21 additions and 3 deletions

View file

@ -198,8 +198,8 @@ impl DisplaySnapshot {
self.blocks_snapshot.buffer_rows(start_row)
}
pub fn buffer_row_count(&self) -> u32 {
self.buffer_snapshot.max_point().row + 1
pub fn max_buffer_row(&self) -> u32 {
self.buffer_snapshot.max_buffer_row()
}
pub fn prev_row_boundary(&self, input_display_point: DisplayPoint) -> (DisplayPoint, Point) {