Skip to main content

previous_boundary

Function previous_boundary 

Source
pub fn previous_boundary(text: &str, offset: usize) -> usize
Expand description

Previous grapheme boundary, so arrow keys and backspace step over a flag emoji or a combining mark as one unit instead of splitting it into pieces that render as garbage.