Skip to main content

find_line_range_at

Function find_line_range_at 

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

Returns the byte range of the full line containing cursor_byte, including any trailing line terminator (\n or \r\n).