fix warnings; 27.2% cov

This commit is contained in:
🪞👃🪞 2025-03-04 01:03:13 +02:00
parent 5352a9d548
commit d5a304e645
5 changed files with 19 additions and 9 deletions

View file

@ -5,7 +5,9 @@ pub fn buffer_update (buf: &mut Buffer, area: [u16;4], callback: &impl Fn(&mut C
for col in 0..area.w() {
let x = area.x() + col;
if x < buf.area.width && y < buf.area.height {
callback(buf.get_mut(x, y), col, row);
if let Some(cell) = buf.cell_mut(ratatui::prelude::Position { x, y }) {
callback(cell, col, row);
}
}
}
}