vim: Implement /n and /c in :s (#34102)
Closes #23345 Release Notes: - vim: Support /n and /c in :s//
This commit is contained in:
@@ -404,6 +404,9 @@ impl SearchQuery {
|
||||
let start = line_offset + mat.start();
|
||||
let end = line_offset + mat.end();
|
||||
matches.push(start..end);
|
||||
if self.one_match_per_line() == Some(true) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
line_offset += line.len() + 1;
|
||||
|
||||
Reference in New Issue
Block a user