Skip to main content

cell_prefix

Function cell_prefix 

Source
pub fn cell_prefix(s: &str, cells: usize) -> &str
Expand description

The start of s that covers more than cells cells once preview marks it, or all of s. Measured by grapheme at ratatui’s widths, a control as its one-cell mark. A value of zero-width graphemes stops at twice cells graphemes, so nothing is walked whole.