Skip to main content

prev_word_boundary_chars

Function prev_word_boundary_chars 

pub fn prev_word_boundary_chars(text: &str, char_idx: usize) -> usize
Expand description

Char index of the previous word boundary at or before char_idx — the char-indexed mirror of prev_word_boundary. Used to extend a reader selection leftward by a whole word (Shift+Ctrl+Left).