display hyperlinks
This commit is contained in:
parent
ae5ce58eec
commit
f3bc16b3c5
6 changed files with 93 additions and 7 deletions
|
|
@ -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))
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue