Skip to main content

display_width

Function display_width 

Source
pub fn display_width(bytes: &[u8], opts: &RenderOpts) -> usize
Expand description

Full expanded display width of a line in columns (tabs expanded to tab stops, cluster widths summed). Used by the viewport to clamp horizontal scroll. Independent of cols/left_col.