Skip to main content

find_prev

Function find_prev 

Source
pub fn find_prev(
    buffer: &EditorBuffer,
    query: &SearchQuery,
    from_offset: usize,
    wrap: bool,
) -> Result<Option<Range<usize>>, EditorError>
Expand description

Returns the last match at or before from_offset, wrapping to the end when wrap is set. Returns Ok(None) when there are no matches.