pub fn word_at(line: &str, col: usize) -> Option<(usize, usize)>Expand description
The run containing col, as (start, end) grapheme indices.
A cursor sitting immediately after a word counts as being on it, which is what makes double-click-at-the-end select what the user meant.