identify files manually by magic numbers

This commit is contained in:
🪞👃🪞 2025-03-11 14:59:11 +02:00
parent 5d7c2054b3
commit 928d38bfaa
5 changed files with 154 additions and 99 deletions

View file

@ -101,7 +101,7 @@ impl<'a> Content<TuiOut> for TreeTable<'a> {
to.fill_bg(fill, Color::Rgb(192, 128, 0));
let fill = [area.x() + x as u16, y, w, 1];
to.fill_bg(fill, Color::Rgb(224, 192, 0));
if let Some((index, value)) = &self.0.editing {
if let Some((_index, value)) = &self.0.editing {
let x = area.x() + if x > 0 { x + 1 } else { x } as u16;
to.blit(&value, x, y, None)
}