More vim-like regexes (#10577)

Fixes:  #10539

Release Notes:

- vim: Use `\<` `\>` instead of `\b`
This commit is contained in:
Conrad Irwin 2024-04-15 14:26:05 -06:00 committed by GitHub
parent f2fc84ab44
commit 904b740e16
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View file

@ -239,7 +239,7 @@ pub fn move_to_internal(
};
let mut query = regex::escape(&query);
if whole_word {
query = format!(r"\b{}\b", query);
query = format!(r"\<{}\>", query);
}
Some(search_bar.search(&query, Some(options), cx))
});