Skip to main content

find_line_start

Function find_line_start 

Source
pub fn find_line_start(text: &Rope, cursor_byte: usize) -> usize
Expand description

Returns the byte offset of the beginning of the line containing cursor_byte.