Skip to content

Commit

Permalink
fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
doy committed Jan 11, 2025
1 parent feb82ce commit 1f3ddff
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/grid.rs
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,11 @@ impl Grid {
.take(rows_len)
// same for rows_len - scrollback_offset (e.g. 3 - 9).
// it'll panic with overflow. we have to saturate the subtraction.
.chain(self.rows.iter().take(rows_len.saturating_sub(self.scrollback_offset)))
.chain(
self.rows
.iter()
.take(rows_len.saturating_sub(self.scrollback_offset)),
)
}

pub fn drawing_rows(&self) -> impl Iterator<Item = &crate::row::Row> {
Expand Down

0 comments on commit 1f3ddff

Please sign in to comment.