Closes #36109 Adds an additional option to `search` and `update_matches` to specify whether the update should affect the search history. Release Notes: - Fix navigating buffer search history
clippy::len_zero
>
<
clippy::redundant_clone