diff --git a/crates/search/src/project_search.rs b/crates/search/src/project_search.rs index 693d4b2658..1bc49551a7 100644 --- a/crates/search/src/project_search.rs +++ b/crates/search/src/project_search.rs @@ -289,7 +289,6 @@ impl ProjectSearch { .await; this.update(&mut cx, |this, cx| { - this.no_results = Some(false); this.match_ranges.extend(match_ranges); cx.notify(); }) @@ -297,6 +296,9 @@ impl ProjectSearch { } this.update(&mut cx, |this, cx| { + if !this.match_ranges.is_empty() { + this.no_results = Some(false); + } this.limit_reached = limit_reached; this.pending_search.take(); cx.notify();