display hyperlinks

This commit is contained in:
Jana Dönszelmann 2026-02-24 23:16:33 +01:00
parent ae5ce58eec
commit f3bc16b3c5
No known key found for this signature in database
6 changed files with 93 additions and 7 deletions

View file

@ -188,7 +188,7 @@ impl LogViewer {
}
}
pub fn items(&self, max: usize) -> Option<(Vec<(Rc<LogEntry>, usize)>, usize)> {
pub fn items(&mut self, max: usize) -> Option<(Vec<(Rc<LogEntry>, usize)>, usize)> {
let mut temp_iter = self.curr.iter.clone();
let mut res = Vec::new();
for _ in 0..max {
@ -198,6 +198,10 @@ impl LogViewer {
res.push(i);
}
if self.curr.selection_offset > res.len() {
self.curr.selection_offset = res.len();
}
Some((res, self.curr.selection_offset))
}