pub fn previous_boundary(text: &str, offset: usize) -> usizeExpand 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.