Skip to main content

find_next

Function find_next 

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

Returns the first match at or after from_offset, wrapping to the start when wrap is set. Returns Ok(None) when there are no matches.