mirror of
https://github.com/zed-industries/zed.git
synced 2025-01-10 20:41:59 +00:00
Disable searches for '.', so that users with large monitors don't accidentally crash the terminal when searching for dot files.
This commit is contained in:
parent
d2c436dcdc
commit
78858d4d11
1 changed files with 3 additions and 0 deletions
|
@ -600,6 +600,9 @@ fn possible_open_targets(
|
|||
|
||||
pub fn regex_search_for_query(query: &project::search::SearchQuery) -> Option<RegexSearch> {
|
||||
let query = query.as_str();
|
||||
if query == "." {
|
||||
return None;
|
||||
}
|
||||
let searcher = RegexSearch::new(&query);
|
||||
searcher.ok()
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue