add scrollbar to revlog

This commit is contained in:
Ashvin Arsakularatne 2021-08-25 02:45:52 +05:30 committed by Stephan Dilly
parent 9c7ac0f84d
commit e275caa872

View file

@ -6,8 +6,8 @@ use crate::{
},
keys::SharedKeyConfig,
strings::{self, symbol},
ui::calc_scroll_top,
ui::style::{SharedTheme, Theme},
ui::{calc_scroll_top, draw_scrollbar},
};
use anyhow::Result;
use asyncgit::sync::{CommitId, Tags};
@ -409,6 +409,14 @@ impl DrawableComponent for CommitList {
area,
);
draw_scrollbar(
f,
area,
&self.theme,
self.count_total,
self.selection,
);
Ok(())
}
}