pub fn update_history(&mut self, history_size: usize, template_row: Row<T>)
    where
        T: Clone,
    {
        let current_history = self.len - (self.visible_lines.0 + 1);
        match history_size.cmp(&current_history) {
            Ordering::Greater => self.grow_lines(history_size - current_history, template_row),
            Ordering::Less => self.shrink_lines(current_history - history_size),
            _ => (),
        }
    }
/// Update the size of the scrollback history
Update the size of the scrollback history
Update the size of the scrollback history
pub fn update_history(&mut self, history_size: usize, template_row: Row<T>)
    where
        T: Clone,
    {
        let current_history = self.len - (self.visible_lines.0 + 1);
        match history_size.cmp(&current_history) {
            Ordering::Greater => self.grow_lines(history_size - current_history, template_row),
            Ordering::Less => self.shrink_lines(current_history - history_size),
            _ => (),
        }
    }
pub fn update_history ( & mut self , history_size : usize , template_row : Row < T > ) where T : Clone , { let current_history = self . len - ( self . visible_lines . 0 + 1 ) ; match history_size . cmp ( & current_history ) { Ordering :: Greater => self . grow_lines ( history_size - current_history , template_row ) , Ordering :: Less => self . shrink_lines ( current_history - history_size ) , _ => ( ) , } }
Update the size of the scrollback history
Update the size of the scrollback history
&mut self
history_size
usize
template_row
Row<T>
&mut self
history_size
usize
template_row
Row<T>