Skip to content

Commit e275caa

Browse files
ashvin021Stephan Dilly
authored and
Stephan Dilly
committed
add scrollbar to revlog
1 parent 9c7ac0f commit e275caa

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

src/components/commitlist.rs

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ use crate::{
66
},
77
keys::SharedKeyConfig,
88
strings::{self, symbol},
9-
ui::calc_scroll_top,
109
ui::style::{SharedTheme, Theme},
10+
ui::{calc_scroll_top, draw_scrollbar},
1111
};
1212
use anyhow::Result;
1313
use asyncgit::sync::{CommitId, Tags};
@@ -409,6 +409,14 @@ impl DrawableComponent for CommitList {
409409
area,
410410
);
411411

412+
draw_scrollbar(
413+
f,
414+
area,
415+
&self.theme,
416+
self.count_total,
417+
self.selection,
418+
);
419+
412420
Ok(())
413421
}
414422
}

0 commit comments

Comments
 (0)