Make scrollbar content detection cheaper

Remove scrollbars from multibuffers

co-authored-by: max <max@zed.dev>
This commit is contained in:
Mikayla Maki 2023-05-22 10:55:44 -07:00
parent 9e46b17149
commit 8669dcdc81
No known key found for this signature in database
4 changed files with 65 additions and 49 deletions

View file

@ -71,6 +71,10 @@ impl BufferDiff {
}
}
pub fn is_empty(&self) -> bool {
self.tree.is_empty()
}
pub fn hunks_in_row_range<'a>(
&'a self,
range: Range<u32>,