Show scrollbar even when buffer search highlights are outside viewport
This commit is contained in:
@@ -8448,6 +8448,12 @@ impl Editor {
|
||||
})
|
||||
}
|
||||
|
||||
pub fn has_background_highlights<T: 'static>(&self) -> bool {
|
||||
self.background_highlights
|
||||
.get(&TypeId::of::<T>())
|
||||
.map_or(false, |(_, highlights)| !highlights.is_empty())
|
||||
}
|
||||
|
||||
pub fn background_highlights_in_range(
|
||||
&self,
|
||||
search_range: Range<Anchor>,
|
||||
|
||||
Reference in New Issue
Block a user