Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
git_graph: Fix empty search case (#52845)
Anthony Eid6837c8aa6bc3
diff --git a/crates/git_graph/src/git_graph.rs b/crates/git_graph/src/git_graph.rsindex b9715660751..d169ba68609 100644--- a/crates/git_graph/src/git_graph.rs+++ b/crates/git_graph/src/git_graph.rs@@ -1324,6 +1324,12 @@ impl GitGraph {editor.set_text_style_refinement(Default::default());});+ if query.as_str().is_empty() {+ self.search_state.state = QueryState::Empty;+ cx.notify();+ return;+ }+let (request_tx, request_rx) = smol::channel::unbounded::<Oid>();repo.update(cx, |repo, cx| {