pub fn clip_spans( spans: &[HighlightedSpan], scroll_col: usize, max_width: usize, ) -> Vec<HighlightedSpan>