bugfixing

This commit is contained in:
Jana Dönszelmann 2026-02-24 22:04:35 +01:00
parent c73be7166f
commit ae5ce58eec
No known key found for this signature in database
6 changed files with 103 additions and 44 deletions

View file

@ -83,7 +83,7 @@ fn initialize_filter(lv: &mut LogViewer, kind: Option<FilterKind>) -> WipFilter
})
} else {
Some(WipMatcher::Specific {
hash: lv.selected().map(|i| i.hash()),
hash: lv.selected().map(|(i, _)| i.hash()),
})
};
@ -426,17 +426,19 @@ impl Widget for &mut App {
Paragraph::new(selected_offset.to_string()).render(right, buf);
let list = List::new(items.into_iter().enumerate().map(|(idx, i)| {
let line = i.line_text(false);
let list = List::new(items.into_iter().enumerate().map(
|(idx, (i, inline_depth))| {
let line = i.line_text(false, inline_depth);
let mut list_item = ListItem::new(line);
let mut list_item = ListItem::new(line);
if idx == selected_offset {
list_item = list_item.style(highlighted);
}
if idx == selected_offset {
list_item = list_item.style(highlighted);
}
list_item
}));
list_item
},
));
Widget::render(list, main_area, buf);
let items = lv.footer_fields();