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

@ -1,6 +1,6 @@
# Contributing to Zed
Thanks for your interest in contributing to Zed, the collaborative platform that is also a code editor!
Thanks for your interest in contributing to onetothree Zed, the collaborative platform that is also a code editor!
All activity in Zed forums is subject to our [Code of Conduct](https://zed.dev/docs/code-of-conduct). Additionally, contributors must sign our [Contributor License Agreement](https://zed.dev/cla) before their contributions can be merged.

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))
});