Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
project_search: Fix message displayed when no results are found (#19108)
CharlesChen0823695176898e80
diff --git a/crates/search/src/project_search.rs b/crates/search/src/project_search.rsindex 693d4b26586..1bc49551a71 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();