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()),
|
Some(self.replacement(cx)).filter(|rep| !rep.is_empty()),
|
||||||
);
|
);
|
||||||
searchable_item.replace(&matches[active_index], &query, cx);
|
searchable_item.replace(&matches[active_index], &query, cx);
|
||||||
|
self.select_next_match(&SelectNextMatch, cx);
|
||||||
}
|
}
|
||||||
|
|
||||||
self.focus_editor(&FocusEditor, cx);
|
self.focus_editor(&FocusEditor, cx);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue