Show symbols located in visible paths before ones located externally

This commit is contained in:
Antonio Scandurra 2022-07-26 14:48:18 +02:00
parent f775cb2947
commit 8552ba15dc
5 changed files with 103 additions and 74 deletions

View file

@ -181,7 +181,7 @@ pub async fn match_strings(
cancel_flag: &AtomicBool,
background: Arc<executor::Background>,
) -> Vec<StringMatch> {
if candidates.is_empty() {
if candidates.is_empty() || max_results == 0 {
return Default::default();
}