diff --git a/crates/search/src/project_search.rs b/crates/search/src/project_search.rs index 693d4b265867fb106e8bd994455a12cdb7a82734..1bc49551a714976eca3b82d5ca2a7f58d5f5c200 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();