Skip to main content

find_line_end

Function find_line_end 

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

Returns the byte offset of the end of the line containing cursor_byte, excluding trailing newline characters (\r\n or \n).