mirror of
https://github.com/zed-industries/zed.git
synced 2024-11-25 00:32:26 +00:00
More vim-like regexes (#10577)
Fixes: #10539 Release Notes: - vim: Use `\<` `\>` instead of `\b`
This commit is contained in:
parent
f2fc84ab44
commit
904b740e16
2 changed files with 2 additions and 2 deletions
|
@ -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.
|
||||
|
||||
|
|
|
@ -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))
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue