search: Fix buffer search history navigation (#37924)

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
This commit is contained in:
tidely
2025-09-11 14:55:14 +02:00
committed by GitHub
parent c4e8fe1fb7
commit 4db19a3a96
4 changed files with 78 additions and 59 deletions
+1
View File
@@ -1585,6 +1585,7 @@ impl OnMatchingLines {
let _ = search_bar.search(
&last_pattern,
Some(SearchOptions::REGEX | SearchOptions::CASE_SENSITIVE),
false,
window,
cx,
);