diff --git a/src/components/commitlist.rs b/src/components/commitlist.rs index 603c53325e..9162c434de 100644 --- a/src/components/commitlist.rs +++ b/src/components/commitlist.rs @@ -88,9 +88,9 @@ impl CommitList { } /// - pub fn current_size(&self) -> (u16, u16) { - self.current_size.get() - } + //pub fn current_size(&self) -> (u16, u16) { + // self.current_size.get() + //} /// pub fn set_count_total(&mut self, total: usize) { diff --git a/src/tabs/revlog.rs b/src/tabs/revlog.rs index b1faf69c77..8e8d971b50 100644 --- a/src/tabs/revlog.rs +++ b/src/tabs/revlog.rs @@ -28,6 +28,7 @@ use tui::{ }; const SLICE_SIZE: usize = 1200; +static MAX_MESSAGE_WIDTH: usize = 100; /// pub struct Revlog { @@ -160,7 +161,7 @@ impl Revlog { let commits = sync::get_commits_info( &self.repo.borrow(), &self.git_log.get_slice(want_min, SLICE_SIZE)?, - self.list.current_size().0.into(), + MAX_MESSAGE_WIDTH, ); if let Ok(commits) = commits {