pub fn index_before_char<I>(line_infos: I, char_index: usize) -> Option<Index>
where I: Iterator<Item = Info>,
Expand description

Convert the given character index into a cursor Index.