pub fn excerpt_text_lines_with_limit<'a>(
text: &'a str,
limit: usize,
preferred_head: usize,
) -> TextLineExcerpt<'a>Expand description
excerpt_text_lines with the window derived from summary_window.
Fit is tested against limit, not head + tail: summary_window reserves
one row for the gap marker (head + tail == limit - 1 when limit > 2),
so an input of exactly limit lines still fits whole.