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:
Mikayla committed 2024-01-12 21:12:02 -08:00
1 parent af22ac93a5
commit e97cc63aaa
1 file changed
+3
@@ -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()
}