mirror of
https://github.com/zed-industries/zed.git
synced 2025-01-12 05:15:00 +00:00
buffer/replace: Advance match index on each replace. (#2992)
Release Notes: - Fixed "Replace next" not advancing the match index.
This commit is contained in:
parent
ae019fb7d3
commit
4525509804
1 changed files with 1 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue