pub fn shrink_visible_lines(&mut self, next: Line) {
        // Shrink the size without removing any lines
        let shrinkage = (self.visible_lines - (next - 1)).0;
        self.shrink_lines(shrinkage);

        // Update visible lines
        self.visible_lines = next - 1;
    }
/// Decrease the number of lines in the buffer
Decrease the number of lines in the buffer
Decrease the number of lines in the buffer
pub fn shrink_visible_lines(&mut self, next: Line) {
        // Shrink the size without removing any lines
        let shrinkage = (self.visible_lines - (next - 1)).0;
        self.shrink_lines(shrinkage);
        // Update visible lines
        self.visible_lines = next - 1;
    }
pub fn shrink_visible_lines ( & mut self , next : Line ) { // Shrink the size without removing any lines let shrinkage = ( self . visible_lines - ( next - 1 ) ) . 0 ; self . shrink_lines ( shrinkage ) ; // Update visible lines self . visible_lines = next - 1 ; }
Decrease the number of lines in the buffer
Decrease the number of lines in the buffer
&mut self
next
Line
&mut self
next
Line