mirror of
https://github.com/helix-editor/helix.git
synced 2025-01-19 13:37:06 +04:00
parent
3ace581191
commit
0851110d10
@ -7,6 +7,10 @@ pub fn find_nth_next(
|
||||
n: usize,
|
||||
inclusive: bool,
|
||||
) -> Option<usize> {
|
||||
if pos >= text.len_chars() {
|
||||
return None;
|
||||
}
|
||||
|
||||
// start searching right after pos
|
||||
let mut chars = text.chars_at(pos + 1);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user