vim: Fix %s replace not working more than twice (#12045)

close: #11981 

Release Notes:

- N/A

---------

Co-authored-by: Conrad Irwin <conrad.irwin@gmail.com>
This commit is contained in:
CharlesChen0823
2024-05-20 19:17:11 -06:00
committed by GitHub
co-authored by Conrad Irwin
parent f2357c71e1
commit 1e18bcb949
3 changed files with 25 additions and 4 deletions
+4
View File
@@ -9983,6 +9983,10 @@ impl Editor {
)
}
pub fn clear_search_within_ranges(&mut self, cx: &mut ViewContext<Self>) {
self.clear_background_highlights::<SearchWithinRange>(cx);
}
pub fn highlight_background<T: 'static>(
&mut self,
ranges: &[Range<Anchor>],