vim: Implement /n and /c in :s (#34102)
Closes #23345 Release Notes: - vim: Support /n and /c in :s//
This commit is contained in:
parent
6daf888fdb
commit
4ed206b37c
6 changed files with 263 additions and 81 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue