Skip to main content

log_list

Function log_list 

Source
pub fn log_list(
    rows: &[Yaml],
    w: usize,
    h: usize,
    sel: usize,
    start: usize,
) -> Vec<String>
Expand description

The log list: one Table of four columns, with a scrollbar in the gutter.

The gutter is what the hand-rolled list does not have. window_start tells the reader which rows are on screen and nothing tells them where that window sits in the result — a scrollbar is the answer, and it is four lines here because Scrollbar is a widget rather than something to draw.