buffer/replace: Advance match index on each replace. (#2992)

Release Notes:
- Fixed "Replace next" not advancing the match index.
This commit is contained in:
Piotr Osiewicz authored and GitHub committed 2023-09-19 23:56:22 +02:00
1 parent ffb0443fa3
commit 36bebf9c3a
1 file changed
+1
+1
View File
@@ -925,6 +925,7 @@ impl BufferSearchBar {
Some(self.replacement(cx)).filter(|rep| !rep.is_empty()),
);
searchable_item.replace(&matches[active_index], &query, cx);
self.select_next_match(&SelectNextMatch, cx);
}
self.focus_editor(&FocusEditor, cx);