Make scrollbar content detection cheaper
Remove scrollbars from multibuffers co-authored-by: max <max@zed.dev>
This commit is contained in:
@@ -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>,
|
||||
|
||||
Reference in New Issue
Block a user