Merge branch 'main' into setting-store

This commit is contained in:
Max Brunsfeld 2023-05-17 14:56:35 -07:00
commit 1f0e79ee9d
8 changed files with 127 additions and 41 deletions

View file

@ -524,6 +524,15 @@ pub struct EditorSnapshot {
ongoing_scroll: OngoingScroll,
}
impl EditorSnapshot {
fn has_scrollbar_info(&self) -> bool {
self.buffer_snapshot
.git_diff_hunks_in_range(0..self.max_point().row(), false)
.next()
.is_some()
}
}
#[derive(Clone, Debug)]
struct SelectionHistoryEntry {
selections: Arc<[Selection<Anchor>]>,