search: Improve performance of `replace_all` (#13654)

Previously replace_all amounted to what could be achieved by repeatedly
mashing "Replace" button, which had a bunch of overhead related to
buffer state syncing. This commit gets rid of the automated button
mashing, processing all of the replacements in one go.

Fixes #13455



Release Notes:

- Improved performance of "replace all" in buffer search and project
search
0761383752Piotr Osiewicz committed on 6/28/2024, 5:06:44 PM· committed by GitHubparentb616f9c
4 files changedLine totals unavailable