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:
@@ -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()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user