Use upstream versions of ratatui crates

This commit is contained in:
itsjunetime
2026-06-06 19:45:27 -05:00
parent 06f737b1fe
commit d5abc4bae5
7 changed files with 448 additions and 213 deletions
+3 -12
View File
@@ -1,23 +1,14 @@
use std::num::NonZeroUsize;
use ratatui::widgets::Widget;
use ratatui::{prelude::buffer::CellDiffOption, widgets::Widget};
pub struct Skip {
skip: bool
}
impl Skip {
#[must_use]
pub fn new(skip: bool) -> Self {
Self { skip }
}
}
pub struct Skip;
impl Widget for Skip {
fn render(self, area: ratatui::prelude::Rect, buf: &mut ratatui::prelude::Buffer) {
for x in area.x..(area.x + area.width) {
for y in area.y..(area.y + area.height) {
buf[(x, y)].skip = self.skip;
buf[(x, y)].diff_option = CellDiffOption::Skip;
}
}
}